My stats show im still getting hits from the IP's im denying
Could Allow all be in the httpd and overriding this?
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 61.
Deny from 202.
Deny from 203.
Deny from 210.214.
Deny from 220.224.
Deny from 220.225.
Deny from 220.226.
Deny from 220.227.
Deny from 213.251.189.203
Deny from .in
Deny from .ru
</Directory>
</VirtualHost>
Either use
<Directory /local/path/to/document/root >
or
<Location / >
HansH
I assumed the directory tag was the home directory since the document route
is specified in the virtual host
DocumentRoot /var/www/site1
I tried adding location but this did not work, Error expected but saw
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Location/>
Deny from 61.
Deny from 202.
Deny from 203.
Deny from 210.214.
Deny from 220.224.
Deny from 220.225.
Deny from 220.226.
Deny from 220.227.
Deny from .in
Deny from .ru
</Location>
</VirtualHost>
Sorry i realised my own tag mistake <Location >
I am somewhat concerned now that my original directory config did not take
effect and location was needed. I am still unsure why this is.
HansH
--
This product is shipped without a Rich Text Formatted Manual.
I am not that bad :). I had already RTFM
As a full example. Here is my Virtual host
DocumentRoot /usr/local/apache/share/site1
ServerName www.site1
DirectoryIndex index.htm index.html index.php
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 202.*.*.*
</Directory>
The fact the document root is specified the <directory> tag should therefore
cover this directory and all its subdirectories and therefore deny of ip
202.*.*.* should take effect imo