[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Banning an IP from access
- Subject: Re: [cobalt-users] Banning an IP from access
- From: craig <craig@xxxxxxxxxxxxx>
- Date: Sat Nov 2 23:12:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> I have a customers site and they are using a huge amount of bandwidth.
>
> It seems that someone with the IP address, 24.44.135.89 is using a fetch API
> to pull the site somewhere, and using 94% of 1.2GB of bandwidth in 2 days!!
>
> How can i stop access to this site from the IP or if this isnt possible ban
> the IP from even accessing the server?
>
Hi do you have ipchains on that box
if so
/sbin/ipchains -I input -s 24.44.135.89 -j DENY -l
If not and its httpd access then palce a .htaccess file
in the /home/sites/sitex/web
where sitex is site number eg site20
with
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName blocked
AuthType Basic
<Limit GET>
order allow,deny
allow from all
deny from 24.44.135.89
</Limit>
Howver if this is a raq4 and you do not have forntpage on that site you
will probaly get and error when you look at
tail -f /var/log/httpd/error saying .htaccess not allowed
so you edit the
/etc/httpd/conf/access.conf
add this at the bottom
<Directory /home/sites/sitex>
AllowOverride All
Options All
</Directory>
and then
/etc/rc.d/init.d/httpd restart