Apache 1.3 Block an IP-Range.

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 "/...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-06-2005
benjamin.grogg@bluewin.ch
 
Posts: n/a
Default Apache 1.3 Block an IP-Range.

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

  #2 (permalink)  
Old 06-12-2005
Slawomir Furmanek
 
Posts: n/a
Default Re: Apache 1.3 Block an IP-Range.


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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0