Web Servers on Unix and Linux - Apache 1.3 Block an IP-Range.

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > June 2005 > Apache 1.3 Block an IP-Range.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache 1.3 Block an IP-Range.
benjamin.grogg@bluewin.ch

2005-06-06, 5:56 pm

Hello NG,

I try to block an IP Range, in the httpd.conf I have following
entries :

<Directory "/var/www/htdocs/mydoc">
<Limit GET HEAD POST>
order deny,allow
allow from all
deny from 192.168.0
</Limit>
</directory>

When I put only "deny from all" it works great.
I tried also change the order but it doesn't
work. I really don't know where I make an
"error in reasoning"...
I checked also : http://httpd.apache.org/docs/mod/mod_access.html#order
Any hints?

Many thanks in advance!
B.Grogg

Slawomir Furmanek

2005-06-12, 5:50 pm


Uzytkownik <benjamin.grogg@bluewin.ch> napisal w wiadomosci
news:1118084387.611578.101220@f14g2000cwb.googlegroups.com...
> Hello NG,
>
> I try to block an IP Range, in the httpd.conf I have following
> entries :
>
> <Directory "/var/www/htdocs/mydoc">
> <Limit GET HEAD POST>
> order deny,allow
> allow from all
> deny from 192.168.0


Try to use instead CIDR notation (e.g. 192.168.0.0/24, 192.168.0.0/16).

Regards
Slawek, CCNA, BSCI


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com