Tuesday, January 25, 2005

Fighting Spam...?

I just found this bit of code on a site that I was visiting:

<.script type="text/JavaScript">
<.!--
emFormat('mdi', 3, 'mdiwebmaster', 2, 'Webmaster')
// Obfuscate email address to thwart simple spam crawlers
//-->
<./script>
<.noscript>Webmaster: mdiwebmaster@somesitedomain.org<./noscript>

(hris

P.S. The code above uses JavaScript to "hide" the email address on the site so that it cannot be harvested and used to send spam. The thoughtful programmer also included extra code for browsers that do not use Javascript so that those people will have an email address that they can use...

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home