How do I block an IP address from accessing....

How do I block an IP address from accessing....

Posted by: FlyingOmelette
Posted on: 2008-09-19 17:08:00

Is there a way to block an ip address from accessing a site? This IP address 68.159.114.16 has been accessing the same file on my site over and over and over again, driving up the bandwidth usage. I want to block it, but I cannot seem to figure out how (pardon if this is in the control panel somewhere, but I can't find it.)

Re: How do I block an IP address from accessing....

Posted by: sXi
Posted on: 2008-09-19 17:53:00

You could totally block it by adding the following line to your .htaccess file:

deny from 68.159.114.16



Re: How do I block an IP address from accessing....

Posted by: FlyingOmelette
Posted on: 2008-09-19 18:53:00

Thanks. I added the line. I'll check my stats tomorrow to see if it works.

Tags: bandwidth usageip addresscontrol panel