Re: HS: How to ban some IP's to connect to apache server
On Monday 21 April 2008 10:08:22 pm Thierry Chatelet wrote:
> Hello
> I know it's not really debian related, but:
> A site call ripe.net is trying all sorts of addresses to go inside my
> sites, like mysite.com/var/www/documents and so on. About a month ago, I
> email to the owner of the site, and it stopped, until this WE. So, I would
> like to ban him (they have about 10 different IP addresses hosted on
> servers from Netherland to Asia) to log into my server. I known, I can do
> it using deny from + IP in each virtual host. What I would prefer to do is
> deny those IP's from the server, not from each host.My server is running
> etch ->
> apache2.2.3-4. How can I do that?
> Thierry
Thierry,
You could block the IP address (/range) in iptables, I suppose. That's
normally pretty extraneous as a security measure (that's not going to stop
anyone who's targeting you), but if there's a bot on that server that's
constantly bugging you, that should be a quick way of making it stop filling
up your access logs.
Reply to: