Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63BB3C4FF for ; Sat, 22 Nov 2014 08:14:48 +0000 (UTC) Received: (qmail 55472 invoked by uid 500); 22 Nov 2014 08:14:44 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55436 invoked by uid 500); 22 Nov 2014 08:14:44 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 55425 invoked by uid 99); 22 Nov 2014 08:14:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2014 08:14:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of buxiaobing@ewellsoft.com designates 122.224.206.6 as permitted sender) Received: from [122.224.206.6] (HELO mail.ewellsoft.com) (122.224.206.6) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2014 08:14:39 +0000 Received: from [192.168.10.168] (unknown [115.236.174.162]) by mail.ewellsoft.com (Postfix) with ESMTPSA id 43183AA02AD for ; Sat, 22 Nov 2014 16:13:39 +0800 (CST) Message-ID: <547045AD.50108@ewellsoft.com> Date: Sat, 22 Nov 2014 16:13:33 +0800 From: Bu Xiaobing User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: users@httpd.apache.org References: <546EEE4F.5030205@ewellsoft.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Access control with source IP addresses 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$ Order allow,deny Allow from specified_IP_address Sury On 2014-11-21 19:48, Rainer M. Canavan wrote: > 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 > > > Allow From IP.IP.IP.IP > > rainer > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org