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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

blocking access by IP

Status
Not open for further replies.

mwpclark

Programmer
Mar 14, 2005
59
US
Can an IP number be blocked from accessing a website through http protocol, port 80? In unix/linux, portsentry uses its own block files plus hosts.deny. Does this stop web pages from loading?

thanks, mike


 
Mike,

You would want to create that rule in your firewall to deny a certain IP Address from going to a website.

Dan
 

Yes - most webservers can allow/deny a list/range of ip addresses.

Also, any firewall worth using will allow you to block specific ip/port combinations.

POrtSentry is more about scan detection and auto-blocking etc. I think you should look at something like IPTables if this is the route you want to take (PortSentry can use IPtables as a defense action - but this is based on the detection process)

Any of these methods will prevent the request from reaching the webserver's page delivery engine - so no page request will even exist - only a connection attempt and subsequent block.

If you did the check through the server side scripting (JSP/ASP/PHP/Ruby etc) this would connect successfully, then request the page succesfully, but the response could either show a graceful rejection page, or it could send a relevant HTTP header code, rejecting the request.

None of them would load the actual page's contents.

If you are the IP that is blocked - then it is very possible that it is PortSentry, but it could be a variety of other things too.

A smile is worth a thousand kind words. So smile, it's easy! :)
 
is this a corp network or home?

if home then firewalls such as Zone Alarm can do the same.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top