How do I block ip addresses?You can block ip addresses from viewing your site by adding a small .htaccess file to your root directory. Just copy and paste the following into a text document, make sure you name the file extension .htaccess :
Quote:
<Limit GET>
order deny,allow
deny from 000.00.000.000
</Limit>
|
Upload it to your root directory, or to whichever directory you need to block the ip address from. If you upload it to your root directory, it blocks the ip address from your entire site. If you upload it into a subdirectory, it blocks the ip only from that subdirectory.