Re: Re: Hiding email address from Robots ??
| From: | Gerben | Date: | Fri, 09 Apr 2004 18:45:18 +0000 |
| Subject: | Re: Re: Hiding email address from Robots ?? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183023@lists.php.net to get a copy of this message | ||
you could make it more difficult when you replace the href="..." with
href="#". the only problem now is that people without javascript can's use
it.
you can make the onClick part (almost)impossible to harvest by putting
part(s) of the adres into a variable somewhere else in the html-code
like this:
<script>var nospam = 'mail'</script>
<a href="#"
onclick="location.href='mai'+'lto:'+nospam+unescape('%40')+'domain.com';
return false;">mail@do<!--make it difficult-->main.com</a>
the weakest link is now the part between the <a> an </a>
"Curt Zirzow" <czirzow@dotgeek.org> wrote in message
news:20040408205554.GB11539@bagend.shire...
> * Thus wrote Gerben (gerbendekeijzer@12move.nl):
> > just google for it. there are several PHP classes that do that for you.
> > try something like:
> > <a href="mail-at-domain-dot-com"
> >
> > onclick="location.href='mai'+'lto:'+'mail'+unescape('%40')+'domain.com';
> > return false;">mail@do<!--make it
> > difficult-->main.com</a>
>
> Only problem is anything obscured can pretty much be found
> /(\w+).*(at|@).*(\w+).*(\.|dot).*(\w+)/
>
> Even javascript could be rendered then captured. It all depends on
> the persons dedication on finding them.
>
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."