My /var/log/httpd/error.log shows many IP's trying various probes of my web site. I want to set Apache to block access from these IP's.
In /etc/httpd/httpd.conf I set:
<Directory "/Library/WebServer/Documents">
...
AllowOverride All
...
</Directory>
and created /Library/WebServer/Documents/.htaccess containing:
Order allow,deny
Allow from all
# Deny all IP's which have tried to probe my site.
Deny from \
1.2.3.4 \
2.3.4.5 \
etc.
This did not block access. I also tried "Order deny,allow" which did not appear to work either. Where am I going wrong.
Dennis
(This copy of apache is running on Mac OS X 10.1.5)
Dennis
dl4_jones@yahoo.com
In /etc/httpd/httpd.conf I set:
<Directory "/Library/WebServer/Documents">
...
AllowOverride All
...
</Directory>
and created /Library/WebServer/Documents/.htaccess containing:
Order allow,deny
Allow from all
# Deny all IP's which have tried to probe my site.
Deny from \
1.2.3.4 \
2.3.4.5 \
etc.
This did not block access. I also tried "Order deny,allow" which did not appear to work either. Where am I going wrong.
Dennis
(This copy of apache is running on Mac OS X 10.1.5)
Dennis
dl4_jones@yahoo.com