|
| |
|
|
stevew
Posts: 1 Joined: 12/19/2002 Status: offline
|
Hiding email address from spiders - 4/15/2004 11:50:06
I thought I got this hint from an Outfront newsletter, but I couldn't find it in forum searches or my (small) archive of newsletters. So I thought I would re-post this info (if it actually a re-post). Thanks to all of you who keep in sharing!!! How To Hide Your Email Address From Spiders (excerpt from http://www.netmechanic.com/news/vol4/design_no21.htm) 1. Use Special HTML Characters This is the easiest way to thwart the email spiders, but it's also the easiest method for the spiders to detect and compensate for: simply use the "@" character in place of the @ sign in your email addresses. Put it in your code inside a link or just as a text email address: quote:
Link: <a href="mailto:news@netmechanic.com">Email Us!</a> Text email: Email us at: news@netmechanic.com Since the HTML code doesn't look like a proper email address, the email spider doesn't harvest it. But the browser understands the code and displays it on the page properly. Visitors will be able to send you mail from the linked address if they have their mail client configured to do so. Otherwise, they can cut and paste from your Web page into their mail client to email you. 2. Hide Email Addresses With JavaScript The special HTML character alone may not do the trick though. Before long, email spiders may be configured to look for it and replace it with the @ symbol. Then you're back with a full inbox of unwanted mail. So consider using JavaScript to parse the email address components. Be sure to change the variable names to reflect your site and email address! Also, remember to keep the document.write statement on one line in your HTML code to avoid getting a JavaScript error message on your Web page. Place the script in the BODY section of your document. quote:
<p>Send your comments and questions to our <script language=javascript> <!-- var contact = "Newsletter Editor" var email = "news" var emailHost = "netmechanic.com" document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".") //--> </script> </p>
|
|
|
|
ContentSeed
Posts: 55 Joined: 10/11/2004 Status: offline
|
RE: Hiding email address from spiders - 10/11/2004 21:56:34
I've had great success at keeping spam out with this: http://automaticlabs.com/products/enkoderform/ I've found the best way to use the addresses this way (and maintain sanity) is to use them via the frontpage "include page". If you've got a number of different email addresses you can just have them on a number of different pages. then put them into your "regular" pages via the frontpage include content component. If you ever need to change all of the ***@ addresses you can take care of them all by changing just that one file.
_____________________________
ContentSeed is an excellent tool for web professionals and a tremendous convenience for their clients. ContentSeed will change the way you do business.
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Hiding email address from spiders - 10/27/2004 14:07:58
quote:
(and maintain sanity Ive yet to learn that technique
_____________________________
Dan
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Hiding email address from spiders - 10/28/2004 14:25:41
Fair enough Tina - but I still believe that ASCII is the best way at the moment for those without advanced knowledge of ASP/PHP/FP - it has never failed me yet for "Form not working" links. I see your in Stockport....why am I the only one stuck up north? lol
_____________________________
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|