Skip to content

Instantly share code, notes, and snippets.

View jasonmcleod's full-sized avatar

Jason McLeod jasonmcleod

View GitHub Profile
/* Not sure if this has any effect against email scraping bots but it's an idea.
It just outputs the string as an array of character codes, then restores it
real characters after the page loads. With javascript disabled we fail. :( */
// PHP function ///////////////////////////////////
function mask($str) {
$mask = "";
for($c=0;$c<strlen($str);$c++) {
$mask .= "" . ord($str[$c]) . ",";
}