Posted by Nico Schuyt on 10/13/06 15:03
Nikita the Spider wrote:
> "Nico Schuyt" wrote:
>> dorayme wrote:
>>> "Nico Schuyt" wrote:
>
>>>> Nikita the Spider wrote:
>>>>> I've set up several spamtrap addresses to study this.
>>>>> [JS versus entity encoding]
>>>> Both are unreliable. Even *I* can make script that extracts email
>>>> addresses from JS or entity coded text :-)
>>>> Use a mail form.
> A mail form != an email address hyperlink. The former is less
> convenient for the user.
Maybe it's more inconvenient for the user if he tries to contact you in an
internet cafe (no mail client)
> Yes, email forms limit spam but so does
> putting one's email address in an image instead of text, or writing
> "foo (at) example dot com".
Not so friendly for the visitor either
But I just applied your entity-encoding-tric in a site where I needed an
e-mail address and didn't had time to install a form :-)
Thanks for the tip!
BTW for encoding of a string ($str) with the e-mail address into html
entities I used:
<php
$str="<e-mail address>";
for ($i=0;$i<strlen($str);$i++)
printf('&#%03d;',ord($str{$i}));
?>
--
Nico Schuyt
http://www.nicoschuyt.nl/
Navigation:
[Reply to this message]
|