Re: [PHP] echo text - anti-spam-spider measure



Stut wrote:
John Taylor-Johnston wrote:
Neat, and thnaks.
How spam-spider-proof is it? I will try this though.
But I will also try it with "mailto:"; in entities as well.
Thanks!
John

<!-- HERE ARE THE ENTITIES -->
<a
href="mailto:&#109;&#101;@&#115;&#111;&#109;&#101;&#119;&#104;&#101;&#114;&#101;.&#99;&#111;&#109;";>&#109;&#101;@&#115;&#111;&#109;&#101;&#119;&#104;&#101;&#114;&#101;.&#99;&#111;&#109;</a>

<!--ENTITIES ABOVE!-->

Of all the possible methods, entities are the easiest for bots to
handle. They just need to decode the entities.

in the past I found the following to be annoying enough for harvesters not to bother:


function obsfucateString($str)
{
$ret = '';
for ($i=0;$i<strlen($str);++$i)
$ret.= (mt_rand(0,1) ? '&#x'.sprintf("%X",ord($str{$i})) : '&#'.ord($str{$i})).';';

return $ret;
}

no idea if it's still even remotely useful.


More reliable methods involve using javascript to write out the mailto:
tag. Do it in several statements. But even then, some of the smarter
spiders will execute simple javascript like that. You can make it better
by using onload to execute the javascript which means the spider will
need to implement that, which I don't believe they do at the moment.

Of course the best way is to use an image and don't link it. If it's
just a way for visitors to contact you, use a contact form. You don't
expose the email address and can control it a lot better.

-Stut

.



Relevant Pages

  • Re: [PHP] echo text - anti-spam-spider measure
    ... entities are the easiest for bots to handle. ... some of the smarter spiders will execute simple javascript like that. ... You can make it better by using onload to execute the javascript which means the spider will need to implement that, which I don't believe they do at the moment. ...
    (php.general)
  • Re: More bollocks from biggots
    ... So if you choose to visit sites that execute JavaScript from "Who knows ... Google as the Google Mail HTML/Javascript does. ... javascript response stored in memory. ...
    (comp.os.vms)
  • Execute JavaScript in a Web Browser Control using VB6
    ... Browser Control? ... exposed by a JavaApplet using JavaScript. ... My question was how do I execute this line of code in VB6 using the ... implement JavaScript wrapper functions just for me and since this code ...
    (microsoft.public.vb.general.discussion)
  • Re: timer in front page
    ... One solution would be to use JavaScript to submit the form when the ... it would execute in 30 minutes. ... > WebPage with a timer. ... > you put a timer into the WebPage? ...
    (microsoft.public.frontpage.client)
  • Re: Access JavaApplet through DOM
    ... I told him I knew how to execute a JavaScript function on a ... web page hosted by IE's Web Browser control, ... didn't know how to access a child object on the page. ... execute with the line below: ...
    (microsoft.public.dotnet.framework.aspnet)