Header menu

_________________________________________________________________________________

Tuesday, 3 September 2013

How to block an ip address from visiting your website using .htaccess ?

1. Make a .htaccess file and save it in your root directory.
2. copy the code below:

order allow,deny
deny from 255.0.0.0   (blocked address)
deny from 192.168.1.96  (blocked address)
allow from all




3.  Paste in file and change the ip address to which you want to block.

4.  save the file