httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Peel" <gp...@thenetnow.com>
Subject Re: [users@httpd] Logging Denied Referrers
Date Mon, 31 Mar 2008 00:32:08 GMT
Joshua,

So, cand these be combined into one container somehow?

<Directory "/">
      Order Allow,Deny
      Allow from all
      Deny from env=block_bad_bots
</Directory>

<Directory "/home/*/www">
    Options Indexes Includes FollowSymLinks
    # FollowSymLinks MultiViews
    AllowOverride Options All
    Order allow,deny
    Allow from all
</Directory>

-Grant


----- Original Message ----- 
From: "Joshua Slive" <joshua@slive.ca>
To: <users@httpd.apache.org>; "Grant Peel" <gpeel@thenetnow.com>
Sent: Sunday, March 30, 2008 5:43 PM
Subject: Re: [users@httpd] Logging Denied Referrers


> On Sun, Mar 30, 2008 at 3:32 PM, Grant Peel <gpeel@thenetnow.com> wrote:
>> Thanks Joshua,
>>
>>  So, If I am reading that docs correctly, the bit I have to deny certain 
>> USer
>>  Agents should go near the top of my httpd.conf?
>>
>>  SetEnvIfNoCase User-Agent "^IDBot" block_bad_bots
>>  SetEnvIfNoCase User-Agent "^$" block_bad_bots
>>  SetEnvIfNoCase User-Agent "Java/1.4.1_04" block_bad_bots
>>
>>  <Directory "/">
>>       Order Allow,Deny
>>       Allow from all
>>       Deny from env=block_bad_bots
>>  </Directory>
>
> It doesn't matter where in httpd.conf that it goes. But this will only
> work if you have NO OTHER Order/Allow/Deny statements in httpd.conf.
> Since <Directory /> is essentially the first thing evaluated
> (regardless of its location) it will get overridden by any other
> access control directives. This isn't a problem unless you have some
> generic
> <Directory /var/web>
> Order Allow,Deny
> Allow from all
> </Directory>
> sections which will turn off your anti-robot rules.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>
>
> 


---------------------------------------------------------------------
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