Forum Moderators: DixonJones

Message Too Old, No Replies

Banning ips

         

thenewguy

8:44 pm on Dec 30, 2003 (gmt 0)

10+ Year Member



Is there a way to ban a IP from watching my site?

dmorison

8:50 pm on Dec 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi thenewguy;

The answer is basically "yes", but it all depends on what web server you are using (eg IIS or Apache); and what access _you_ have to the computer itself.

For example, if you are running Apache, and either you have control of the server or have permissions to use a .htaccess file in the root of your website then you can block IP's by adding DENY FROM entries in .htaccess.

See the Apache .htaccess Tutorial [httpd.apache.org] for more information.

uncle_bob

8:52 pm on Dec 30, 2003 (gmt 0)

10+ Year Member



add the following section to your httpd.conf (if using apache)

<location />
order deny,allow
deny from 69.41.14.21
</location>

or goto the directory security tab in IIS and click on the IP address restrictions edit button.

WebJoe

9:02 pm on Dec 30, 2003 (gmt 0)

10+ Year Member



this might help:Banning via htacces? [webmasterworld.com]
or if you're on iis:
ISAPI Rewrite [webmasterworld.com]