The Voidspace Techie Blog

Have you seen this?

http://mailhide.recaptcha.net/

The Recaptcha is a damn clever twist on the usual captcha, and it would sort your bot problem out without any issues with javascript. Incidentally, bots nowadays are even sometimes able to get past Javascript obfuscation by rendering the page in e.g. a hosted ActiveX control....


Gravatar You can use script to obfuscate the address completely -- here's a generator of obfuscation scripts I wrote based on the old Hiveware Enkoder program:

http://www.ravnaandtines.com/ enk...oderScript.html


Gravatar I once did a similar thing with a PHP function that, when passed the email address, would automatically generated a javascript code with the obfucated email address inside it. Er... I bet I could dig it out too. I wonder what posting a code snippet here would look like? For the sake of experiment, I think I'm going to...

Ahar! Here it is! It has a bool param, too, to determine whether it should display the email address (for normal use) or else display the resulting javascript (for posts about the code

Raha! Escaping all the '<' and '>' while distinguishing them from the '& l t ;' and the '& g t ;' proved beyond my ability. Ugh.

// str2hex()
// Convert each character of string (eg. 'j') into hex, eg 'x6A'.
function str2hex ($string)
{
$retval = "";
for ($n=0; $n


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan