Re: Access control with source IP addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi rainer,

Can't understand what do you mean.

I try to write the acl as the below lines, but it can't work.


RewriteCond %{QUERY_STRING} ^manage$

<Location  /m/index.php>
  Order allow,deny
  Allow from specified_IP_address
</Location>

Sury

On 2014-11-21 19:48, Rainer M. Canavan wrote:
On Nov 21, 2014, at 08:48 , Bu Xiaobing <buxiaobing@xxxxxxxxxxxxx> 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
</Location

rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[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]

  Powered by Linux