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....