[EMAIL PROTECTED] wrote: > Hello, > > > Suppose an email harvester (evil) from wewillspamyou.com visits my site, > domain.com > > Is there a way for Apache to detect the user and rewrite certain text that > appears in the webpage that is served to that user?
There are some cases that can be detected as such bots (eg those that announce themselves in a User-Agent string). But there's no general method to detect them. The 'usual' way of dealing with them is to deny access, or to serve them a different page. IIRC the mod_rewrite page has a recipe for that. If you want to rewrite outgoing contents, you can do that with mod_publisher. Configure the filter, and use setenvif to tell mod_filter to insert it when a bad bot is detected. Note that this requires Apache 2.1 or a patched 2.0. > Though an easy solution: I wish to avoid using images to encode my email > strings. Yes, don't do that. You don't want to deny some of your legitimate human visitors the opportunity to contact you, even if you live in a country where deliberately discriminating against the blind won't put you at risk of a lawsuit. -- Nick Kew --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]