Guides
HTML Guides
Blocking IP using .htaccess file | 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: order allow,deny 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.
Related Items:
Add as favourites (185) | Quote this article on your site | Views: 1982
1. 23-02-2009 22:19 yes instead of "allow from all" write allow .... 2. 13-07-2008 01:58 None to deny all ip addresses and just include a few do you just reverse the words deny and allow? Write Comment |
||||
| Next > |
|---|