Rewriting email addresses

Discuss practical ways rearrange URLs using mod_rewrite.

Postby Guest » Sun May 19, 2002 9:20 am

Is it possible to rewrite email addresses on a page load to prevent those email harvesting spam bots from reading them? Basically, convert the mailto link on the page to one containing the ASCII characters for each letter?
Guest
 

Postby Brett » Mon May 20, 2002 7:11 am

You can't do this with mod_rewrite, since a mailto: link is processed by the browser.

I actually tried something like this recently, replacing the @ sign with %40, and it seemed to work ... until I discovered it wasn't compatible with some versions of AOL.

You could probably do something with JavaScript. For example, the following works in MSIE; I haven't tested other browsers.
<A HREF="mail" onClick="this.href='mailto:name'+'@domain'">link</A>
Brett
 
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com

Postby Guest » Fri Oct 04, 2002 3:12 pm

Here is an article taht provides some ideas to deal with spambots:

http://www.alistapart.com/stories/spam/
Guest
 

Scrambled Email Addresses

Postby nobodyhome » Wed Oct 01, 2003 4:34 pm

what you really want is this baby, the Anti-Spam Address Encoder. spambots can't make a thing of the code, but it displays just fine if you've got javascript enabled (most people do).

http://hiveware.com/enkoder_form.php
nobodyhome
 


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 33 guests

cron