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   (blocked address)
deny from  (blocked address)
allow from all

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

4.  save the file