Mail harvesters seem to crawl a lot of websites nowadays and people try to fight it. I'm not exactly aware of how these bots scan, but it seems like they're pretty dumb in most cases. For example, they don't allow the "+" sign in usernames. But to make it a little harder for them, why not obfuscate your entire mailto: link in your HTML?
The following code (yes, it can made a little more golf-like) can help you out to "obfuscate" your mailto: link
It takes one parameter, the email address itself. Example usage:
$ ./link_obfu foo@bar.invalid <a href="mailto:foo +4;bar.invalid"> </ +a>
Browsers (Firebird and Lynx tested) don't seem to have a problem with it, but a simple harvesting bot won't know what to do with it ;)
#!/usr/bin/perl -w use strict; print "<a href=\"mailto:"; foreach (split("",$ARGV[0])) { print "&#".ord($_).";"; } print "\"> </a>\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mailto: "obfuscation"
by dominix (Deacon) on Feb 07, 2004 at 20:55 UTC | |
by b10m (Vicar) on Feb 08, 2004 at 11:36 UTC |