keiller
Mr Tutorial Man
- Jun 9, 2012
- 492
- 108
Hello,
Today we will be learning how to ban a certain IP from your site. This tutorial will only work for XAMPP, so please do not attempt if you are using IIS.
#1 - Go to .htaccess and add this code;
PHP:
## USER IP BANNING
<Limit GET POST>
order allow,deny
deny from 127.0.0.1
allow from all
</Limit>
Where it says "deny from 127.0.0.1" replace the "127.0.0.1" with the persons IP. This should deny them access to your site.
Save, and your done.