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 (23) | Quote this article on your site | Views: 315
Write Comment |
||||
| Next > |
|---|