Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 16295 invoked from network); 6 Aug 2005 19:23:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Aug 2005 19:23:17 -0000 Received: (qmail 97611 invoked by uid 500); 6 Aug 2005 19:23:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 97598 invoked by uid 500); 6 Aug 2005 19:23:07 -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 97585 invoked by uid 99); 6 Aug 2005 19:23:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 12:23:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [216.148.227.89] (HELO rwcrmhc12.comcast.net) (216.148.227.89) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 12:22:55 -0700 Received: from mbrc40 (pcp742362pcs.reston01.va.comcast.net[68.49.145.32]) by comcast.net (rwcrmhc14) with SMTP id <2005080619230301400rkjl9e>; Sat, 6 Aug 2005 19:23:03 +0000 From: "Michael D. Berger" To: Date: Sat, 6 Aug 2005 15:22:59 -0400 Message-ID: <000001c59abc$41f8f110$2801a8c0@MBRC40> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Block File Types X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Joshua Slive [mailto:jslive@gmail.com] > Sent: Saturday, August 06, 2005 11:40 AM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Block File Types > > > On 8/6/05, Michael D. Berger wrote: > > I would like to prevent Apache 2.0 from sending any > > file of a particular type. In my VirtualHost I put: > > > > RewriteEngine on > > RewriteCond %{REQUEST_URI} ^.*notThis\?*$ > > RewriteRule ^.*$ /zzz [L] > > > > Is there a better way? > > > Order Allow,Deny > Deny from all > > > But watch for configuration merging issues (this could be overriden by > sections). Also, I have no idea what the \? is supposed to > be doing. > > Joshua. > Thanks for this help; it works as advertised. The \?* deals with the situation in which there are arguments in the request. Experiment shows that with yout method, the \?* is not necessary. Mike. -- Michael D. Berger m.d.berger@ieee.org --------------------------------------------------------------------- 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