[thelist] Email Obfuscation may be beaten?

Liam Delahunty liam at megaproducts.co.uk
Sat Jan 31 16:45:23 CST 2004


on 30/01/2004 13:59 John C Bullas (soton.ac.uk relay) wrote:

>>>> http://www.liamdelahunty.com/tips/email_obfuscation_for_spambots/spambot_03.php 
> can you post the script (or make it available) for us to use locally?

My pleasure.

<?php

function ascii_encode($str){
         global $encoded;
         $encoded="";
     for ($i=0; $i < strlen($str); $i++){
         $encoded .= '&#'.ord(substr($str,$i)).';';
     }
     return;
}

if ($submit){
         ascii_encode($myemail);
         $link = "<a href=\"mailto:$encoded\">$encoded</a>";
         $display=htmlentities($link);
         print ("<p>$display</p>");
}

print ("<form action=\"$PHP_SELF\" method=\"post\">");
print ("<input type=\"Text\" name=\"myemail\">");
print ("<input type=\"Submit\" name=\"submit\">");
print ("</form>");

?>
-- 
Kind regards, Liam Delahunty, Mega Products Ltd
12 Bury Place, London WC1A 2JL Fax: +44(0)871 224 7891
http://www.megaproducts.co.uk/ Internet Design & Development


More information about the thelist mailing list