httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer M. Canavan" <rainer.cana...@sevenval.com>
Subject Re: [users@httpd] How to define string list for comparison?
Date Mon, 03 Nov 2014 09:49:49 GMT

On Nov 2, 2014, at 16:22 , Marco Pizzoli <marco.pizzoli@gmail.com> wrote:

> I mean;
> <If "%{HTTP:X-ClientIP} =~ /(1\.1\.1\.1|2\.2\.2\.2)/">

that looks somewhat dangerous. I haven't checked the Documentation for =~
but I assume that you have to anchor that expression, since you would
allow IPs like 231.1.1.145 otherwise. Something like

<If "%{HTTP:X-ClientIP} =~ /^(1\.1\.1\.1|2\.2\.2\.2)$/">

would be better.



rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message