Quote:
Originally Posted by ferdinand2
in httpd.conf
I use <Directory> inside and outside of <VirtualHost>
to deny access to my websites from some IPs however it only
works when site is accessed using url with domain name.
When I go to same webiste using its IP then "deny from" commands
are ignored in <Directory>.
Can I deny access to my IP's similar way I can deny access to domain name? I see this in access_log
208.254.45.254 - - [12/Dec/2006:01:14:25 -0500] "\x80@\x01\x03" 501
so I assume he is doing something bad and using direct requests to IP and I want to block him.
TIA and Happy New Year to All !
|
a quick way to completely block him would be to issue an iptables command on the server like:
Code:
iptables -I INPUT -s 208.254.45.254 -j DROP
if your server is behind a gnu/linux router, then just run the command on the router - substitute INPUT with FORWARD...
just my
...