From: wessels <> Date: Sun, 24 Jan 1999 10:25:22 +0000 (+0000) Subject: DW gets nitpicky X-Git-Tag: SQUID_3_0_PRE1~2352 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bcad01de29942b22794a7799e6d90f52de8679f;p=thirdparty%2Fsquid.git DW gets nitpicky --- diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc index 7b520fac8c..85520965b8 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpRequest.cc,v 1.21 1999/01/22 19:07:00 glenn Exp $ + * $Id: HttpRequest.cc,v 1.22 1999/01/24 03:25:22 wessels Exp $ * * DEBUG: section 73 HTTP Request * AUTHOR: Duane Wessels @@ -147,7 +147,7 @@ httpRequestHdrAllowed(const HttpHeaderEntry * e, String * strConn) { assert(e); /* check with anonymizer tables */ - if (CBIT_TEST(Config.http_header, e->id)) + if (CBIT_TEST(Config.anonymize_headers, e->id)) return 0; /* check connection header */ if (strConn && strListIsMember(strConn, strBuf(e->name), ',')) diff --git a/src/cf.data.pre b/src/cf.data.pre index 69557d6a4c..c4d077a5dc 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -1,6 +1,6 @@ # -# $Id: cf.data.pre,v 1.136 1999/01/24 02:44:10 wessels Exp $ +# $Id: cf.data.pre,v 1.137 1999/01/24 03:25:22 wessels Exp $ # # # SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -2263,37 +2263,48 @@ DOC_START and firewall_ip. DOC_END -NAME: http_header +NAME: anonymize_headers TYPE: http_header -LOC: Config.http_header +LOC: Config.anonymize_headers DEFAULT: none DOC_START - Lets you to configure which headers are passed by squid - to allow you to anonymize the requests delivered by your - proxy server. Please read the HTTP rfc's for header names - and functions. + Usage: anonymize_headers allow|deny header_name ... - There are two methods of using this command. You can choose - two methods either: - - http_header allow header_name ... + This option replaces the old 'http_anonymizer' option with + something that is much more configurable. You may now + specify exactly which headers are to be allowed, or which + are to be removed from outgoing requests. - Which denys all headers expect for those listed. Or : + There are two methods of using this option. You may either + allow specific headers (thus denying all others), or you + may deny specific headers (thus allowing all others). - http_header deny header_name ... + For example, to achieve the same behaviour as the old + 'http_anonymizer standard' option, you should use: - Which allows all headers except for those listed. By default - all headers are allowed. You CAN NOT have allow and deny - commands together in the same configuration. + anonymize_headers deny From Referer Server + anonymize_headers deny User-Agent WWW-Authenticate Link + + Or, to reproduce the old 'http_anonymizer paranoid' feature + you should use: - usage: + anonymize_headers allow Allow Authorization Cache-Control + anonymize_headers allow Content-Encoding Content-Length + anonymize_headers allow Content-Type Date Expires Host + anonymize_headers allow If-Modified-Since Last-Modified + anonymize_headers allow Location Pragma Accept Charset + anonymize_headers allow Accept-Encoding Accept-Language + anonymize_headers allow Content-Language Mime-Version + anonymize_headers allow Retry-After Title Connection + anonymize_headers allow Proxy-Connection - http_header allow|deny header_name ... + NOTE: You can not mix "allow" and "deny". All 'anonymize_headers' + lines must have the same second argument. -Example: -This example acts like the old standard configuration: + By default, all headers are allowed (no anonymizing is + performed). -http_header deny From Referer Server User-Agent WWW-Authenticate Link +anonymize_headers DOC_END NAME: fake_user_agent @@ -2301,8 +2312,8 @@ TYPE: eol LOC: Config.fake_ua DEFAULT: none DOC_START - If you filter the User-Agent header with 'http_header' it will - cause some Web servers to refuse your request. Use this to + If you filter the User-Agent header with 'anonymize_headers' it + may cause some Web servers to refuse your request. Use this to fake one up. For example: fake_user_agent Nutscrape/1.0 (CP/M; 8-bit) diff --git a/src/structs.h b/src/structs.h index 19edf816ef..4e75a26131 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.271 1999/01/24 02:44:13 wessels Exp $ + * $Id: structs.h,v 1.272 1999/01/24 03:25:23 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -430,7 +430,7 @@ struct _SquidConfig { char *encode_key; } mcast_miss; #endif - HttpHeaderMask http_header; + HttpHeaderMask anonymize_headers; }; struct _SquidConfig2 {