[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Blocking a Server
- Subject: RE: [cobalt-users] Blocking a Server
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat Nov 2 05:59:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Quick question on whether it is possible to block a
> particular server from visiting one of our RaQs.
>
> I know it is possible to stop the mail from coming from a
> particular internet domain name and email address, but is it
> possible to block a server from gaining web pages.
>
> i.e. if the connection or referer comes from
> hd34.thisserver.net then block and dont allow access, but any
> other then let it in.
>
> The reason behind it is recently we are seeing more and more
> hits from a particular server monitoring service and it is
> getting to the point now where they are grabbing a page from
> tens of sites every second, it looks like the server is near
> enough trawling the entire server to find just one page that
> doesnt work.
>
I believe
route add -net 66.150.40.0 netmask 255.255.255.0 reject
will do the trick. Of course, if it's another /24 you will have to
change the IPs.
You can add something in access.conf to deny from them.
http://www.webdevelopersjournal.com/software/apache_more_config.html
under <Directory /home/sites/> in access.conf you will see:
order deny, allow
allow from all
under that you can add:
#sites or host to block
deny from internetseer.com
deny from webclipping.com
deny from 66.150.40
You then need to reload or restart httpd
--
Dan Kriwitsky
Please reply to the list only. Offlist replies are not read.