About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > How to Protect Email Addres...

   Browse by title articles:
   What is hot:

How to Protect Email Addresses...

PHP Introduction

Test Script

Now you see it ...

Comments

Extensions & Tags

Hard Drive Does Not Boot
Keyboard Shortcuts for a "Frozen" Mouse
Basic and Not so Basic "Function" Features Using PHP
Navigation - What makes a good one?
Prev articles1234 5 6789101112Next articles



How to Protect Email Addresses in Textarea Fields From Harvesters and Spammers





Obfuscating web site email addresses by using Unicode is a nice and - at least currently - pretty efficient trick. Unfortunately, it won't work very well if you're presenting some preformatted text in a textarea field: your human visitors would not be able to recognize the address for what it is. However, here's a neat work around.

Provided your web server set up allows for Server Side Includes (SSI), encapsulate your textarea file like this:

<!--# if expr=""$HTTP_USER_AGENT" != /ExtractorPro| EmailSiphon|WEBMOLE|Crescent Internet ToolPak| NEWT ActiveX; Win32|CherryPicker|Microsoft URL Control| EmailCollector|EmailWolf|NICErsPRO|Telesoft|WebBandit| WebEMailExtractor| /" -->

<!--#include file="yourfile.txt"-->

<!--# endif -->

You can either include an external file (as in our example above), or simply put your body text between the initial and the "endif" tag, in which case you can omit the "include file" reference.

This will prevent the harvest bots listed above by UserAgent from scanning your file and any email content it may feature.

Should you detect further UserAgents related to email harvesters, simply add them to the list above, delimiting them with the pipe symbol (|).




-----------------
Ralph Tegtmeier is the co-founder and principal of fantomaster.com Ltd. (UK) and fantomaster.com GmbH (Belgium), a company specializing in webmasters software development, industrial-strength cloaking and search engine positioning services. He has been a web marketer since 1994 and is editor-in-chief of fantomNews, a free newsletter focusing on search engine optimization, available at: < http://fantomaster.com/fantomnews-sub.html > You can contact him at mailto:fneditor@fantomaster.com (c) copyright 2000 by fantomaster.com





Education Cost




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com