Blocking IP's

N

nwstamps

Guest
How can I block any access from given IP's or range of IP's? I notice that most of the forged mail is coming from certain parts of the world and from speaking to others who run ecommerce, most of the attacks on their security originates from the same areas. I'd like to simply close the door.

I am sure this is an easy one but I haven't found the way yet.
 
You can do it too placing a .htaccess file in your web folder writing this lines:

order deny,allow
deny from 123.45.6.7
deny from 012.34.5.

The third line blocks all the IPs which starts with 012.34.5.
 
Back
Top