Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12555 invoked from network); 25 Jul 2005 18:03:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 18:03:11 -0000 Received: (qmail 16486 invoked by uid 500); 25 Jul 2005 18:03:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15956 invoked by uid 500); 25 Jul 2005 18:02:57 -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 15943 invoked by uid 99); 25 Jul 2005 18:02:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 11:02:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.184.200 as permitted sender) Received: from [64.233.184.200] (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 11:02:50 -0700 Received: by wproxy.gmail.com with SMTP id 69so1037627wri for ; Mon, 25 Jul 2005 11:02:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qOGKfeg3ptx3dx4bT/FpbIX7DCNxwCETm7iSnRsnhRTczPnEZzjzII7DJBjs2JOZJuCAKsMLZ2REwMOeYpObFIflMlGH1gG1wCv2oXgfBhy9XcXkcr+utYtxEWj9OqmxAxtihuZLf4oznR/hSjhxtAHM9GEd6or31N3LakZaAUo= Received: by 10.54.11.70 with SMTP id 70mr2224870wrk; Mon, 25 Jul 2005 11:02:55 -0700 (PDT) Received: by 10.54.61.7 with HTTP; Mon, 25 Jul 2005 11:02:55 -0700 (PDT) Message-ID: Date: Mon, 25 Jul 2005 14:02:55 -0400 From: Joshua Slive Reply-To: Joshua Slive To: Dick Davies Cc: Apache Users In-Reply-To: <20050725174447.GE49467@eris.tenfour> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050725170034.GD49467@eris.tenfour> <20050725174447.GE49467@eris.tenfour> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite and network addresses? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/25/05, Dick Davies wrote: > > RewriteCond %{REMOTE_ADDR} !^10\.0\.11[2-9]\.* > > RewriteCond %{REMOTE_ADDR} !^10\.0\.12[0-7]\.* > > which I believe should get the intention of your first line. (Note > > also the correct regex escaping of the '.'.) >=20 > Thanks Joshua, just needed some confirmation I wasn't missing anything ob= vious > (the escaping in my post was adhoc, was'nt sure if mod_rewrite needs .* > or * to match 'anything'). mod_rewrite uses regular expressions, so ".*" is needed to match anything (which means I missed a dot in my above example: it needs to end with \..*). Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org