Log in

View Full Version : How to block a large number of Ipz .. not ban !!


sebil
07-08-2009, 05:18 PM
Hii...

due to some legal problem.. i have to block IPz from a geographical area...

i have collected the IP adresses.. and contacted my server people to block those IPs coming to
my site
They told me they cant.. :D and the reason they said is... they got customers from allover the world.. !!

for example i need to block IPs ...
59.
115.

startuing with these numbers,,,, for a temporary period..
how to do this...

and i dont wanna show the mebembers that they are banned..


Any way... ?

Hostboard
07-08-2009, 06:01 PM
Well you do not mention if this is a Linux or Windows server which is important but assuming your runing under Linux use .htaccess


order allow,deny
deny from 192.168.44.201
deny from 224.39.163.12
deny from 172.16.7.92
allow from all


OR


# Deny 69.60.114.0 - 69.60.115.255 (512 addresses)
Deny from 69.60.114.0/23
# Deny 69.60.116.0 - 69.60.119.255 (1024 addresses)
Deny from 69.60.116.0/22
# Deny 69.60.120.0 - 69.60.123.255 (1024 addresses)
Deny From 69.60.120.0/22
# Deny 69.60.124.0 - 69.60.125.255 (512 addresses)
Deny from 69.60.124.0/23


All taken from simple Google searches...

sebil
07-08-2009, 08:36 PM
itz linux..