httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Montague <m...@catseye.org>
Subject Re: [users@httpd] disable wget-like user-agents
Date Tue, 04 Jan 2011 23:19:03 GMT
  On January 4, 2011 18:03 , Carlos S <neubyr@gmail.com> wrote:
> Is there any way to disable download/traffic from wget-like user
> agents? Can this be done using user-agent string? Any documentation
> link or example will be really helpful.

Follow the example below, but use only the user agent condition, omit 
the IP condition, and suitably adjust the RewriteRule regular expression 
to match the URL(s) you wish to block:

http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html#blocking-of-robots

Note that wget has a -U option that can be used to get around this block 
by using a user agent string that you are not blocking -- so the block 
will not prevent a determined downloader.

--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message