Re: [users@httpd] Rewrite text in served pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



krystian@xxxxxxxxxxxxxx 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux