This is a discussion on Apache 1.3 Block an IP-Range. within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello NG, I try to block an IP Range, in the httpd.conf I have following entries : <Directory "/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
Uzytkownik <benjamin.grogg@bluewin.ch> napisal w wiadomosci news:1118084387.611578.101220@f14g2000cwb.googlegr oups.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 |