Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 8268 invoked by uid 6000); 26 Jun 1998 02:50:08 -0000 Received: (qmail 8207 invoked by uid 2001); 26 Jun 1998 02:50:02 -0000 Received: (qmail 7028 invoked by uid 2012); 26 Jun 1998 02:45:40 -0000 Message-Id: <19980626024540.7027.qmail@hyperreal.org> Date: 26 Jun 1998 02:45:40 -0000 From: Wensong Zhang Reply-To: wensong@iinchina.net To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: mod_proxy/2506: I added an excluding function in ProxyBlock directive Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 2506 >Category: mod_proxy >Synopsis: I added an excluding function in ProxyBlock directive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Thu Jun 25 19:50:01 PDT 1998 >Last-Modified: >Originator: wensong@iinchina.net >Organization: apache >Release: 1.3.0 >Environment: Linux 2.0.33 >Description: After I set up Apache HTTP mirror site by using of apache program, I found many users who use it not as the mirror site but as a proxy server, that is not what I want. So, I checked the apache manual and the ProxyBlock directive, but it can only block several sites or block all sites, the directive is as follows ProxyBlock foo.com www.bar.com or ProxyBlock * >How-To-Repeat: It just doesn't have an excluding function in the ProxyBlock directive. >Fix: It can't block all sites excluding some sites, so I added several lines of codes into apache proxy module and the ProxyBlock directive work as follows ProxyBlock domain.com !www.domain.com ... For example, my Apache http mirror uses the following statement ProxyBlock * !www.apache.org Please add my patch (http://proxy.iinchina.net/~wensong/apache/ProxyBlock.patch) into the apache program to let others to share it if possible. To apply patch, cd cat ProxyBlock.patch | patch -p1 Thank you, Wensong >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]