Page is a not externally linkable
- WebmasterWorld
-- Website Analytics - Tracking and Logging
---- Protecting Email Addresses From Harvesters


DrDoc - 5:23 am on Dec 22, 2005 (gmt 0)


Or, you can always do something like this:

function email($username, $domain, $tld) { 
$uservar = substr(md5(microtime()), 0, 13);
$atvar = substr(md5(microtime()), 0, 13);
$domainvar = substr(md5(microtime()), 0, 13);
$dotcomvar = substr(md5(microtime()), 0, 13);
echo "<script type=\"text/javascript\">
gx$domainvar = \"$domain\";
gx$uservar = \"$username\";
gx$dotcomvar = \"$tld\";
gx$atvar = \"\\x40\";
document.write(\"\\x3c\" + \"a href='ma\" + \"ilto:\" + gx$uservar + gx$atvar + gx$domainvar + \".\" + gx$dotcomvar + \"'\\x3e\" +
gx$uservar + gx$atvar + gx$domainvar + \".\" + gx$dotcomvar + \"\\x3c/a\\x3e\");
</script>
<noscript><div>$username<del class=\"del\">DELETETHIS</del>&#64;$domain<del class=\"del\">DELETETHIS</del>.$tld</div></noscript>";
}

Then, of course, specify display: none in your stylesheet for the .del class

[edited by: engine at 3:10 pm (utc) on Jan. 16, 2006]
[edit reason] fixed scrolling [/edit]


Thread source:: http://www.webmasterworld.com/analytics/3858.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com