Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F32F98140 for ; Fri, 26 Aug 2011 11:35:45 +0000 (UTC) Received: (qmail 59474 invoked by uid 500); 26 Aug 2011 11:35:43 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 58120 invoked by uid 500); 26 Aug 2011 11:35:34 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 57005 invoked by uid 99); 26 Aug 2011 11:35:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 11:35:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dirkx@webweaving.org designates 178.18.23.51 as permitted sender) Received: from [178.18.23.51] (HELO pikmeer.webweaving.org) (178.18.23.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 11:35:09 +0000 Received: from [10.11.0.247] (thuis [83.86.203.230]) (authenticated bits=0) by pikmeer.webweaving.org (8.14.4/8.14.4) with ESMTP id p7QBY57H004558 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 26 Aug 2011 11:34:41 GMT (envelope-from dirkx@webweaving.org) From: Dirk-Willem van Gulik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Advisory improvement Date: Fri, 26 Aug 2011 12:34:48 +0100 Message-Id: <74851D2E-825C-4A39-AF5E-88961872034A@webweaving.org> To: dev@httpd.apache.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.5 (pikmeer.webweaving.org [178.18.23.51]); Fri, 26 Aug 2011 11:34:41 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org =46rom the Full Disclosure list. Does anyone have time to confirm this = improvement. On 26 Aug 2011, at 12:09, Carlos Alberto Lopez Perez wrote: > RewriteEngine on > RewriteCond %{HTTP:range} !(^bytes=3D[^,]+(,[^,]+){0,4}$|^$) [NC,OR] > RewriteCond %{HTTP:request-range} !(^bytes=3D[^,]+(,[^,]+){0,4}$|^$) = [NC] > RewriteRule .* - [F] >=20 > Because if you don't specify the [OR] apache will combine the rules > making an AND (and you don't want this!). >=20 > Also use NC=3D(nocase) to prevent the attacker upper casing "bytes=3D" > (don't know if it will work.. but just to prevent) Pretty Please ! Thanks, Dw.