[thelist] Email address hiding question

lustig at brandeis.edu lustig at brandeis.edu
Fri Jul 1 09:51:33 CDT 2005


An idea I just got- what if you had a function, say displayEmail($name,
$address) that you would use like this:


<p>Send an email to <?php echo displayEmail('me', 'lustig at brandeis.edu');?> to
get updates.</p>



Depending on the user-agent string, it would either display a link or it
wouldn't. For normal browsers (being liberal) it would display an obfuscated
mailto: link, but if it didn't have a user-agent string that matched a known
web browser, it would just display the name without any link. That way
spambots (which as far as I know don't use standard user-agent strings) just
would never see any link at all...

Jason


More information about the thelist mailing list