LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-19-2009, 09:48 PM   #1
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Rep: Reputation: 56
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.
 
Old 01-19-2009, 11:21 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux puts ip into hosts.deny when accessing ossec web interface kav Linux - Software 3 04-21-2007 01:05 PM
prevent irc script accessing web site dtra Linux - Networking 3 06-09-2005 06:10 AM
PROBLEM WITH ACCESSING WEB PAGE FROM INTERNET EXPLORER ON A XP MACHINE TO SuSE 9.0 Adrian13 Linux - Networking 2 10-19-2004 11:17 PM
Want to monitor processes of several hosts through web page, how? huangyanfeng Linux - General 1 05-26-2004 02:36 PM
web page accessing port 4662 before allowing connect? skog Slackware 2 03-12-2004 02:38 PM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration