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 69BF7CEED for ; Fri, 21 Nov 2014 11:51:12 +0000 (UTC) Received: (qmail 52187 invoked by uid 500); 21 Nov 2014 11:51:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52151 invoked by uid 500); 21 Nov 2014 11:51:04 -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 52141 invoked by uid 99); 21 Nov 2014 11:51:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2014 11:51:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.181] (HELO mail-wi0-f181.google.com) (209.85.212.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2014 11:50:59 +0000 Received: by mail-wi0-f181.google.com with SMTP id r20so8548247wiv.8 for ; Fri, 21 Nov 2014 03:48:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=dfa7OYyIwqwH1sB/dW76xgansWX4SZ97QR2waI/TjKY=; b=Rxd0ygwI7+BK1bd1AvyJj2gL/Kx/51TZGrnDEWukAi+ROXgShBb5/FDqVSIhv3hBgy zLGChF2/+3gRcpdIaJoh/jtaHDBknnwbqCiKXpX12l/n1oR1HloCqK4M8xqO8A9NSaNN cVLY2Dp28Z6WQtF4LXAidvw5KIQayHz6TjVsPZMifzpGd9t1BVCuCINi+1K+uiPnKsoq 3eq2J2cOj0BIWG9XqM0ZDVE/tKu0sguIqszhbiy4nHtjHaGVOCUG9CpZWGnOMU0LZ9XF SFiqoP6x77jtWJbE6pgjgriXWkPHe8bm9dhIMb8oin5IMmpO6UJHsbiUaKg8QhntleyC RQ+A== X-Gm-Message-State: ALoCoQnEWbaTnK8Jxryq1DWL32u785aZVLNpIIAMtcV0OnmZwlHrBTeyMQhXdnuOBJyF0pT9Xtm8 X-Received: by 10.180.98.233 with SMTP id el9mr7044905wib.3.1416570502385; Fri, 21 Nov 2014 03:48:22 -0800 (PST) Received: from melia.office.sevenval.de (tim.7val.com. [213.196.234.2]) by mx.google.com with ESMTPSA id n3sm10980187wiw.5.2014.11.21.03.48.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 03:48:21 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: "Rainer M. Canavan" In-Reply-To: <546EEE4F.5030205@ewellsoft.com> Date: Fri, 21 Nov 2014 12:48:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <546EEE4F.5030205@ewellsoft.com> To: users@httpd.apache.org X-Mailer: Apple Mail (2.1510) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Access control with source IP addresses On Nov 21, 2014, at 08:48 , Bu Xiaobing = wrote: > Hi All, >=20 > I want to do the httpd URL access control through visitors' IP = addresses as the following : >=20 > all source IP address can visit ^/action.php?login > and only specified IP addresses can visit ^/action.php?manage >=20 > Anyone can give me some advises? You've probably noticed that the usual mechanisms like Directory, = Location and=20 LocationMatch don't evaluate the query string. You'll probably have to use a RewriteRule preceded by=20 RewriteCond %{QUERY_STRING} manage or something similar, in combination with=20 Allow =46rom IP.IP.IP.IP