Forum Moderators: open

Message Too Old, No Replies

Need script to hide e-mail addresses

From Spammers

         

WebMan61

12:30 am on Apr 18, 2006 (gmt 0)

10+ Year Member



Anybody have a code to hide e-mail address from spammers getting them from the web sites? Thanks

canuck

3:08 am on Apr 18, 2006 (gmt 0)

10+ Year Member



Here's a thread discussing how to hide email addresses:

[webmasterworld.com...]

MichaelBluejay

2:14 am on Apr 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Unfortunately that thread is outdated. There are now spambots that can see through encoding and through JavaScript document.write's. I wrote a good article on the subject of hiding email addresses from spambots but because of forum rules I'm not allowed to share it. (And please don't sticky me asking for it, I don't have time to screw around with PM's all day.)

As an extremely brief summary, you must give up at least one of the following to effectively hide your address:

* Address is visible
* Address is copyable
* Address is clickable

For example, if you use an image of the @ sign, then the address isn't clickable or copyable.

If you use a fill-in form on a webpage, then the address isn't visible.

Easiest solution: mail(at)mydomain.com. Ugly, not copyable, but it's invisible to spambots -- at least for now. It probably won't be for long.

Another solution: A form with a button that says "Click to show email address". When button is clicked, address appears in a form field. Much stronger than document.write.

There are no perfect solutions, you'll always give up something. Good luck.

Tastatura

2:23 am on Apr 20, 2006 (gmt 0)

10+ Year Member



Not JS solution, however see this thread for info
[webmasterworld.com ]

msg#28

HTH

MichaelBluejay

11:35 am on Apr 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That one's even more obsolete! 2003! It's like using no protection at all.