httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Montague <>
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 <> 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:

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message