mod_rewrite RewriteCond
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi to all,
I'm working with apache 2.2.3-22 and I want to allow access a certain IP address. These IP are consecutive
x.x.x.232
x.x.x.233
in my httpd.conf I'm using
RewriteCond %{REMOTE_ADDR} !x\.x\.x\.23[23]$ [NC]
RewriteRule \.*$ - [F,NC]
or
RewriteCond %{REMOTE_ADDR} !x\.x\.x\.23[2-3]$ [NC]
RewriteRule \.*$ - [F,NC]
but in this way works fine only the first address (232). How can I add the another IP (233) in my list of allowed IP?
Thanks
Michael
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]