View Single Post
Old 01-04-2003, 11:57 AM  
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Punta Cana, DR
Posts: 29,593
Quote:
Originally posted by G Sharp


Thanks direct, can you share the code for this? Also, what's the name of the file to modify?
in the conf folder, a file called httpd. BACK IT UP to http,old before doing any changes!!!!

In that file opened with NOTEPAD, you will see the following:
....
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
.......

change that to:

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
deny 216.111.154.112
deny www.asshole.com
deny asshole.com
</Directory>

Save the file by selecting in notepad the proper original file, then writing over. Restart Apache.

If Apache fails, you have an error. The backup file is then very welcomed....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote