Blocking access by IP


#1

What is the preferred method of blocking access to a site based on IP?

Thanks,

Douglas


#2

I do that using the .htaccess file., like this:

order allow,deny
deny from 192.168.1.1
deny from 192.168.2.
allow from all

jan


#3

maybe i understand wrongly. but by using htaccess file should be the best way to achieve it because it blocks access before server loads the page.

Save [color=#CC0000]$97[/color] (max discount) on dreamhost plans by using promo code: [color=#CC0000]97CRAZY[/color].