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

how to block port 80 ?

Status
Not open for further replies.

alanchia

Technical User
Jan 8, 2003
42
SG
Hi all,


how to deny access to all users except a few for port 80 for my red hat computer ?

thanks
alan
 
>how to deny access to all users except a few for port 80 for my red hat computer ?

I'm unsure how you want this this done. There's a few ways to go about this.

1: Go about using the kernel firewalls, and block everything coming in except what you request. Then allow connects from Client IP's. If the clients' IP addresses are static, this would be the best solution.... It'll block everything off at the kernel level (before your web server even sees it).

2: If you're running Apache, you can set an .htaccess file at the root of your server. This is a WHOLE LOT EASIER as you dont have to muck around in kernel space. This document will help you set up the password files to do this.

Good luck ;-) Please let Tek-Tips members know if their posts were helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top