httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele De Santis <tap...@virgilio.it>
Subject [users@httpd] mod_rewrite RewriteCond
Date Fri, 27 Jun 2014 09:37:15 GMT
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

   
Mime
View raw message