Forum Moderators: phranque

Message Too Old, No Replies

IP Banning On Apache

         

djneo20

8:33 pm on Dec 20, 2002 (gmt 0)



Im looking to ban a certain IP ir IP's from accessing my apache server it currently runs on my home PC workiing with Windows XP Pro. I need to do this as little i wont say constantly grab the webcam image from the site and i get charged to upload which is a real joke. If there a line of code i can add to Apache or a code i can add to the page on the website.

seindal

9:01 pm on Dec 20, 2002 (gmt 0)

10+ Year Member



Add this to your .htaccess or a Directory, Files or Location block in the main config:

order allow,deny
allow from all
deny from DOMAIN
deny from IP

Substitute DOMAIN and IP with whatever you want to block.

René