[SpamCop.net - protecting the internet through technology]

[SpamCop-List] Re: Pornographic Spam Assault

Porpoise porpoise1954 at yahoo.co.uk
Wed Mar 2 18:24:11 EST 2005


"Steven Maesslein" <nobody at nowhere.invalid> wrote in message 
news:slrnd2befb.7oo.nobody at 127.0.0.1...
> On Wed, 2 Mar 2005 12:07:07 -0000, Porpoise coughed into spamcop and
> left this in <d04aur$2bm$1 at news.spamcop.net>:
>
>> Obfuscating email addresses within webpages is child's play if you're 
>> using
>> something like PHP because it only "appears" when the page is rendered
>> within the browser window, so it can't be scraped from the file by robots
>> like it can from a vanilla HTML file.
>
> Robots also call up pages using HTTP. If an e-mail address is sent to a
> browser by PHP, it can also be sent to a 'bot.
>
> Until spammer bots know how to interpret javascript (some might
> already), the arguably best way to have mailto: links on a page is to
> have them built by javascript. Yes, it breaks for people using browsers
> with javascript disabled, but those people are probably fully aware of
> the reasons behind not putting an e-mail address up in the clear in the
> first place. Alternatively, something like this works fine on a domain I
> administer (no spam attempts yet on the e-mail address whivh is
> UNfiltered): <noscript>local_part @ domain . tld</noscript>
>
> Otherwise, the script I use to obfuscate the address is this:
>
>  <script language="javascript" type="text/javascript">
>  <!--
>  function WriteMailLink(user,domain,subject,display) {
>    document.write('<a href="mai');
>    document.write('lto:'+user+'&#64;');
>    document.write(domain);
>    if ( subject.length > 0 )  document.write("?subject="+subject);
>    document.write('">');
>    if ( display.length > 0 )
>      document.write(display);
>     else
>      document.write(user+'&#64;'+domain);
>    document.write('<'+'/a>');
>  }
>  // -->
>  </script>
>

Well that doesn't look terribly different to my PHP script so I'm not sure 
why a robot would find any difference between them...........?? (Mind you, 
I'm not as "up" on javascript - I've not gone that route due to more and 
more people blocking their browsers from accepting it).

The PHP script that constructs the email addresses is not in the same file 
as the one calling the function - it's called from within other scripts in 
other files that build the pages somewhat dynamically, so the robot would 
need to know how all the bits go together in order to make sense of it. I 
think!  :-)




More information about the SpamCop-List mailing list