httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reinhardt" <crypto...@cryptodan.net>
Subject Re: [users@httpd] How to block IP addresses to the whole server?
Date Fri, 12 Mar 2010 19:55:22 GMT

--------------------------------------------------
From: "Je suis la poubelle" <lapsap7@gmail.com>
Sent: 12 March, 2010 13:27
To: <users@httpd.apache.org>
Subject: Re: [users@httpd] How to block IP addresses to the whole server?

>     Yes, I had created hosts.deny as well (but I forgot to mention
> it) but it had no effect.
>
> On Thu, Mar 11, 2010 at 22:28, Igor Cicimov <icicimov@gmail.com> wrote:
>> You need to put the ip in the hosts.deny file
>>
>> On Mar 12, 2010 3:11 AM, "John Doe" <jdmls@yahoo.com> wrote:
>>
>> From: Je suis la poubelle <lapsap7@gmail.com>
>>
>>> Yeah, I want o blacklist some IP addresses. I don't have > iptables
>>> installed, and I don't w...
>>
>> Try this:
>>  http://www.mkhelif.fr/2008/06/23/apache2-systeme-de-blacklist.html
>>
>> JD
>>
>> --------------------------------------------------------------------- The
>> official User-To...
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Lapsap7,

What you want is a .htaccess file that blocks the IP addresses from browsing 
your site.  Please follow the below link. You will then want to upload the 
generated .htaccess to your DocumentRoot to block the IP addresses.

Here is a great site:

http://www.blockacountry.com/

It automatically generates a .htaccess file that you can use to block entire
nations.

I use it, and it works great.

Thanks,
Daniel 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message