httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer M. Canavan" <>
Subject Re: [users@httpd] Access control with source IP addresses
Date Fri, 21 Nov 2014 11:48:18 GMT

On Nov 21, 2014, at 08:48 , Bu Xiaobing <> wrote:

> Hi All,
> I want to do the httpd URL access control through visitors' IP addresses as the following
> all source IP address can visit  ^/action.php?login
> and only specified IP addresses can visit ^/action.php?manage
> Anyone can give me some advises?

You've probably noticed that the usual mechanisms like Directory, Location and 
LocationMatch don't evaluate the query string. You'll probably have to
use a RewriteRule preceded by 

RewriteCond %{QUERY_STRING} manage

or something similar, in combination with 

<Location /action.php>
 Allow From IP.IP.IP.IP

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message