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

Deny IP address

Status
Not open for further replies.

pstnguy

MIS
Sep 6, 2006
15
US
Fedora Core 6, with Apache 2.2 installed. I have numerous entries in my logs for computers trying to hack my website.

How do I deny an IP address from the site? Would these site all be 'deny' entries in httpd.conf? Or is there a simple list that needs to be modified?

Thanks in advance.
 
If the person doing this is interested, he could also attemp to get in through other ports as well. You may want to deny his ip at the system level with /etc/hosts.deny
 
RhythmAce,
I was looking for a system level deny, thank you for the info.

Bob
 
at /etc/apache2/sites-available/default

change following configuration?
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

something like

Allow from all
Deny 84.21.103.120

perhaps?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top