Re: FN-FORUM: Blocking IPs
date posted 1st February 2007 14:45
On Thursday 01 February 2007 15:18, Michelle Penny wrote:
> I've been delving further into the stats for the clients site that has
> gone over its bandwidth limit and find a couple of odd IP addresses that
> are using up a lot of bandwidth. The hosting uses Helm control panel and
> I can't immediately find a way to do it through there. Is the most
> effective way using a .htaccess file or does anyone have any alternative
> methods?
Try something like this in your .htaccess
order allow,deny
deny from 123.123.123.123
deny from 456.456.456.*
deny from 789.789.*.*
allow from all
This will send people to a 403 error page, so you should have one of those,
specify it's location by adding the following line to the .htaccess
ErrorDocument 403 /errors/403.html
--
Artumi Systems, 58 Salmon Street, Sheffield, S11 8DD.
Tel 0114 250 7654, Web http://www.artumi.com
VAT Reg 889 0317 88