|Blocking IP using .htaccess file|
|Written by Administrator|
|Thursday, 01 May 2008|
In case you want to block a certain IP address from entering your site, lets say you found a hacker or injector, you should use the .htaccess file to deny them from ever trying again.
To block an IP address from entering your site, edit the .htaccess file (you should find it in the root folder of your site).
Add this code:
After the "deny from" write down the IP you want to block. you can add as many lines as you like one below the other to block more IP's.
Add as favourites (355) | Quote this article on your site | Views: 3838