BLOCKING IP ADDRESSES

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BLOCKING IP ADDRESSES

mywaytoo
Here are some notes that I made years ago about blocking IP addresses:

BLOCKING IP ADDRESSES

To block certain ip address from accessing your website, just create a file with name .htaccess at your root directory with the content below:-
order allow,deny
deny from 192.168.0.1
allow from all

If you want to block multiple ip address using .htaccess simply add one ip address per line as below:-
order allow,deny
deny from 192.168.0.2
deny from 192.168.0.3
deny from 192.168.0.4
allow from all  

You can even block a network range ip using .htaccess:-
order allow,deny
deny from 129.0.0
allow from all

If we can't use this on our forums then we can add it to the root of our websites!
Or maybe Nabble can use something like this to keep Free Support clean...
Anne
Reply | Threaded
Open this post in threaded view
|

Re: BLOCKING IP ADDRESSES

Pedro
Thanks.
My test forum.