Hi,
Trying to prevent some IPs accessing the webserver using the code below in httpd.conf. I know it reads the file because the logfile is created but never gets updated. One of the IPs is mine so I know its not working.
Thanks for looking,
Rich
------------------------------------------------------------------------------------------------------
Options +FollowSymLinks
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 4
# block some IPs
RewriteCond %{REMOTE_HOST} ^128\.147\.28\.2$ [NC,OR]
RewriteCond %{REMOTE_HOST} ^76\.120\.153\.220$ [NC,OR]
RewriteCond %{REMOTE_HOST} ^192\.168\.1\.105$ [NC,OR]
RewriteCond %{REMOTE_HOST} ^61\.(.*)$ [NC]
RewriteRule ^(.*)$ - [R,L]