LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to prevent certain hosts from accessing my web page... (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-prevent-certain-hosts-from-accessing-my-web-page-698501/)

trist007 01-19-2009 09:48 PM

How to prevent certain hosts from accessing my web page...
 
I run Backtrack 3 and I have an apache web server running that is open to WAN via port forwarding on my dd-wrt router. How do I prevent a certain WAN IP from accessing my web page? I have added that IP address to the /etc/hosts.deny and have restarted the httpd service but still I continue to see that IP address on the httpd logs.

Could you guys also explain the method that I would use, i.e. at what point in the OSI model would that GET HTTP packet from that IP be dropped?

Thanks in advance.

w3bd3vil 01-19-2009 11:21 PM

I am not sure if tcp wrappers would work the way you are trying for apache.
Instead,I would just make iptables drop the connection from that ip. Apache too has something called mod_access which should be useful.


All times are GMT -5. The time now is 02:45 AM.