Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

httpd.conf allowing only one i.p. address in

Status
Not open for further replies.

jivani

MIS
Sep 16, 2003
2
CA
newbie question. I would like to filter out all i.p. addresses except one. But Listen doesn't seem to justify.

any ideas?
 
Do you want to allow only one ip to access your server or just want it to listen on one address? The "Listen" directive binds the server to one ip. This is used when there are more than one NICs installed on the machine. You can filter out unwanted users or allow limited access to a directory or website with the "Order allow, deny" directives then the "Allow from (whatever)" or "Deny from (whatever)". The (whatever) can be an ip address or a Netscape user to name just two. :)
 
rythm thanx for the info it seems to be what im looking for...I want only one machine to have access to my http server.

I have
order allow,deny
allow from 192.168.0.52
deny from all

after restarting i still can get to the machine with another machine!!??????????

Also...

I have

#listen 80
#listen 443

yet i can still telnet...

 
Try this:

Order Deny, Allow
Deny from all
Allow from 192.168.0.52

Apache will lister for http traffic on port 80 and https on port 443. It doesn't have anything to do with telnet. Telnet traffic is handled by your telnet server which does its thang on port 23.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top