Re: Hide email addresses from spam bots

From: Date: Wed, 01 Feb 2006 16:28:51 +0000
Subject: Re: Hide email addresses from spam bots
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-229648@lists.php.net to get a copy of this message
Indeed, the problem is that the HTTP-USER_AGENT is actually set by the software reading the page, a bot could actually say its IE6 and then bypass your protection. The best protection you can do is encoding your addresses in a two way encoding like Base64 wich is plenty enough and using a little script on your email links, you call a javascript that decodes the links and does a window.location = "mailto:"+decoded_email This will the browser act like a mailto: link had been clicked and still protect your email adresses. For example: mdumoulin@groupe-cdgi.com looks like this in base64 : bWR1bW91bGluQGdyb3VwZS1jZGdpLmNvbQ== Now i dunno how to do a base64 decode and encode in javascript but there is bound to be someone that did it somewhere on the net, just look for a function already coded... tedd wrote:
Regulars: I doubt if this can be done, but it there a way to detect a spambot as compared to a SE indexing your site? They are both basically the same, right? tedd


« previous php.general (#229648) next »