1<?xml version="1.0" encoding="UTF-8"?>
2<mman>
3	<global>
4		<general>
5			<ctimeout>10</ctimeout>
6			<timeout>60</timeout>
7			<keeptimeout>120</keeptimeout>
8			<maxbuffer>1000000</maxbuffer>
9			<tempdir>/tmp</tempdir>
10			<linelength>100</linelength>
11			<cportrange>80,443</cportrange>
12			<poolsize>32</poolsize>
13			<pooltimeout>60</pooltimeout>
14			<compressout>false</compressout>
15			<compressin>true</compressin>
16			<encodemime>^text/</encodemime>
17		</general>
18		<ftp>
19			<passive>true</passive>
20			<timeout>15</timeout>
21			<anonlogin>anonymous</anonlogin>
22			<anonpass>noone@nowhere.com</anonpass>
23			<sortorder>ascending</sortorder>
24			<sortfield>name</sortfield>
25		</ftp>
26		<dnsbl>
27			<enabled>false</enabled>
28			<domain>in.dnsbl.org</domain>
29			<badips>127.0.0.1,127.0.0.2,127.0.0.3,127.0.0.4,127.0.0.5</badips>
30		</dnsbl>
31		<prefetch>
32			<enabled>true</enabled>
33			<threads>10</threads>
34			<queuesize>100</queuesize>
35			<tags>img:src:1</tags>
36		</prefetch>
37	</global>
38
39	<network>
40		<listen>
41			<enabled>true</enabled>
42			<port>8080</port>
43			<ip>127.0.0.1</ip>
44		</listen>
45	</network>
46
47	<profiles>
48		<item>
49			<enabled>false</enabled>
50			<comment>Remove some popups</comment>
51			<addprofiles>anti-popup</addprofiles>
52		</item>
53		<item>
54			<enabled>true</enabled>
55			<comment>Bypass link tracking scripts</comment>
56			<addprofiles>anti-link-tracker</addprofiles>
57		</item>
58		<item>
59			<enabled>false</enabled>
60			<comment>Remove webbugs, this can screw up formatting on alot of pages</comment>
61			<addprofiles>anti-webbug</addprofiles>
62		</item>
63		<item>
64			<enabled>true</enabled>
65			<comment>Prevent HTML code which alters the layout of a window (menubar, statusbar, etc.)</comment>
66			<addprofiles>anti-window-altering</addprofiles>
67		</item>
68		<item>
69			<enabled>true</enabled>
70			<comment>Mask useragent as Internet Explorer</comment>
71			<addprofiles>mask-useragent</addprofiles>
72		</item>
73		<item>
74			<enabled>true</enabled>
75			<comment>Mask referrer in javascripts, and make it appear like the webpage was reloaded to the server</comment>
76			<addprofiles>mask-referrer</addprofiles>
77		</item>
78		<item>
79			<enabled>true</enabled>
80			<comment>Remove some non-standard HTML from webpages</comment>
81			<addprofiles>non-standard-html</addprofiles>
82		</item>
83		<item>
84			<enabled>true</enabled>
85			<comment>somethingawful.com is very picky about the referrer when loading images</comment>
86			<host>somethingawful.com</host>
87			<removeprofiles>mask-referrer</removeprofiles>
88		</item>
89		<item>
90			<enabled>true</enabled>
91			<comment>These sites cause problems with the anti link tracker</comment>
92			<host>(nytimes.com|washingtonpost.com|yahoo.com|passport.com|google.com)</host>
93			<removeprofiles>anti-link-tracker</removeprofiles>
94		</item>
95		<item>
96			<enabled>true</enabled>
97			<comment>Workaround for a bug in apache 1.3 when downloading tar.gz files from clients that don&apos;t support gzip encoding</comment>
98			<file>.*\.tar\.gz$</file>
99			<addprofiles>apache-targz-workaround</addprofiles>
100		</item>
101	</profiles>
102
103	<templates>
104		<template>
105			<enabled>false</enabled>
106			<comment>just an example</comment>
107			<name>404</name>
108			<file>echo &lt;html&gt;&lt;head&gt;&lt;title&gt;File not found&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;h2&gt;&lt;center&gt;$HTTP_HOST$HTTP_FILE not found&lt;/center&gt;&lt;/h2&gt;&lt;/body&gt;&lt;/html&gt;</file>
109			<mime>text/html</mime>
110			<code>404</code>
111			<parsable>true</parsable>
112			<type>executable</type>
113		</template>
114	</templates>
115
116	<external>
117		<enabled>true</enabled>
118	</external>
119
120	<access>
121		<policy>deny</policy>
122		<allow>
123			<enabled>true</enabled>
124			<comment>localhost</comment>
125			<pamauth>false</pamauth>
126			<access>config,proxy,connect,http,transparent,bypass,urlcommand</access>
127		</allow>
128	</access>
129
130	<cache>
131		<enabled>true</enabled>
132		<violaterfc>true</violaterfc>
133		<maxmemsize>10485760</maxmemsize>
134		<memextra>1048576</memextra>
135		<maxage>2592000</maxage>
136		<validate>1800</validate>
137		<lmfactor>10</lmfactor>
138		<maxsize>5242880</maxsize>
139		<minage>3600</minage>
140		<minsize>0</minsize>
141		<maxwaitsize>512000</maxwaitsize>
142		<prefetchwindow>30</prefetchwindow>
143		<icpport>0</icpport>
144		<icptimeout>1000</icptimeout>
145		<sbalancemethod>fillsize</sbalancemethod>
146		<store>
147			<enabled>true</enabled>
148			<path>/var/cache/mman</path>
149			<maxdisksize>104857600</maxdisksize>
150			<diskextra>10485760</diskextra>
151		</store>
152	</cache>
153
154	<header>
155		<enabled>true</enabled>
156		<policy>deny</policy>
157		<allow>
158			<enabled>true</enabled>
159			<type>Accept(|-Encoding|-Charset|-Language|-Ranges)</type>
160			<which>,client</which>
161		</allow>
162		<allow>
163			<enabled>true</enabled>
164			<type>Host</type>
165			<which>,client</which>
166		</allow>
167		<allow>
168			<enabled>true</enabled>
169			<type>Content-(Type|Length)</type>
170			<which>,client</which>
171		</allow>
172		<allow>
173			<enabled>true</enabled>
174			<type>Cookie</type>
175			<which>,client</which>
176		</allow>
177		<allow>
178			<enabled>true</enabled>
179			<type>Authorization</type>
180			<which>,client</which>
181		</allow>
182		<allow>
183			<enabled>true</enabled>
184			<type>Referer</type>
185			<which>,client</which>
186		</allow>
187		<allow>
188			<enabled>true</enabled>
189			<type>Range</type>
190			<which>,client</which>
191		</allow>
192		<allow>
193			<enabled>true</enabled>
194			<comment>Allow User-Agent to pass through if it&apos;s not being masked</comment>
195			<profiles>!mask-useragent</profiles>
196			<type>User-Agent</type>
197			<which>,client</which>
198		</allow>
199		<allow>
200			<enabled>true</enabled>
201			<which>server,</which>
202		</allow>
203		<insert>
204			<enabled>true</enabled>
205			<profiles>mask-useragent</profiles>
206			<type>User-Agent</type>
207			<value>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)</value>
208			<which>,client</which>
209		</insert>
210	</header>
211
212	<cookies>
213		<enabled>true</enabled>
214		<policy>allow</policy>
215	</cookies>
216
217	<redirect>
218		<enabled>true</enabled>
219		<item>
220			<enabled>true</enabled>
221			<comment>This will send a template when /proxy.pac is requests to configure the browser to use the proxy</comment>
222			<url>^/proxy.pac$</url>
223			<redirect>/mman/template/proxy.pac</redirect>
224			<which>url</which>
225			<send302>no</send302>
226			<options>,,</options>
227		</item>
228		<item>
229			<enabled>true</enabled>
230			<comment>bypass most link-tracking scripts (this is known to cause problems with some sites)</comment>
231			<profiles>anti-link-tracker</profiles>
232			<url>(&amp;|\?|=|/)http://([^&amp;]+)</url>
233			<redirect>http://$2</redirect>
234			<which>url</which>
235			<send302>yes</send302>
236			<options>,,decodeafter</options>
237		</item>
238		<item>
239			<enabled>true</enabled>
240			<comment>bypass advertisement click-thru on msnbc</comment>
241			<url>http://(www\.|)msnbc.com/ads/trans/taDisplay.asp\?realURL=([^&amp;]+)</url>
242			<redirect>http://www.msnbc.com$2?ta=y</redirect>
243			<which>url</which>
244			<send302>yes</send302>
245			<options>,,</options>
246		</item>
247		<item>
248			<enabled>true</enabled>
249			<comment>alias for searching google</comment>
250			<url>^http://search/(.*)</url>
251			<redirect>http://www.google.com/search?q=$1</redirect>
252			<which>url</which>
253			<send302>yes</send302>
254			<options>,,</options>
255		</item>
256		<item>
257			<enabled>true</enabled>
258			<comment>bypass sourceforge mirror selection</comment>
259			<url>http://prdownloads.sourceforge.net/([^\?]+)</url>
260			<redirect>http://telia.dl.sourceforge.net/$1</redirect>
261			<which>url</which>
262			<send302>yes</send302>
263			<options>,,</options>
264		</item>
265		<item>
266			<enabled>true</enabled>
267			<url>^http://help/</url>
268			<redirect>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/middle-man/middleman/README.html?rev=HEAD&amp;contentype=text/html</redirect>
269			<which>url</which>
270			<send302>yes</send302>
271			<options>,,</options>
272		</item>
273	</redirect>
274
275	<keywords>
276		<enabled>true</enabled>
277		<threshold>0</threshold>
278	</keywords>
279
280	<forward>
281		<enabled>true</enabled>
282		<item>
283			<enabled>false</enabled>
284			<comment>forward all requests through local squid proxy</comment>
285			<proxy>127.0.0.1</proxy>
286			<port>3128</port>
287			<icptype>sibling</icptype>
288			<icpport>3130</icpport>
289			<type>HTTP</type>
290			<which>HTTP,FTP,CONNECT</which>
291		</item>
292	</forward>
293
294	<limits>
295		<enabled>true</enabled>
296	</limits>
297
298	<filter>
299		<enabled>true</enabled>
300		<policy>allow</policy>
301		<default>checkeredgif</default>
302		<deny>
303			<enabled>true</enabled>
304			<file>/adimages/</file>
305		</deny>
306		<deny>
307			<enabled>true</enabled>
308			<file>/banner(|s)/</file>
309		</deny>
310		<deny>
311			<enabled>true</enabled>
312			<host>^ad(|s|v|server)\.</host>
313		</deny>
314		<deny>
315			<enabled>true</enabled>
316			<file>/ad(|s|v|(|_)banner(|s))/</file>
317		</deny>
318		<deny>
319			<enabled>true</enabled>
320			<file>/adx/</file>
321		</deny>
322		<deny>
323			<enabled>true</enabled>
324			<file>/sponsors/</file>
325		</deny>
326		<deny>
327			<enabled>true</enabled>
328			<file>/advert(ising|s|)/</file>
329		</deny>
330		<deny>
331			<enabled>true</enabled>
332			<file>/adcycle/</file>
333		</deny>
334		<deny>
335			<enabled>true</enabled>
336			<host>adtag\.</host>
337		</deny>
338		<deny>
339			<enabled>true</enabled>
340			<host>targetsearches.com</host>
341		</deny>
342		<deny>
343			<enabled>true</enabled>
344			<file>/track/</file>
345		</deny>
346		<deny>
347			<enabled>true</enabled>
348			<file>/promo/</file>
349		</deny>
350		<deny>
351			<enabled>true</enabled>
352			<file>/adspace/</file>
353		</deny>
354		<deny>
355			<enabled>true</enabled>
356			<file>/admentor/</file>
357		</deny>
358		<deny>
359			<enabled>true</enabled>
360			<file>/image\.ng/</file>
361		</deny>
362		<deny>
363			<enabled>true</enabled>
364			<file>/ajrotator/</file>
365		</deny>
366		<deny>
367			<enabled>true</enabled>
368			<file>/adview.php</file>
369		</deny>
370		<deny>
371			<enabled>true</enabled>
372			<file>/clickthru</file>
373		</deny>
374		<deny>
375			<enabled>true</enabled>
376			<file>/affiliates</file>
377		</deny>
378		<deny>
379			<enabled>true</enabled>
380			<file>banmat(\.cgi|.\.cgi)</file>
381		</deny>
382		<deny>
383			<enabled>true</enabled>
384			<host>webconnect.net</host>
385		</deny>
386		<deny>
387			<enabled>true</enabled>
388			<file>/adproof/</file>
389		</deny>
390		<deny>
391			<enabled>true</enabled>
392			<file>/bannerfarm/</file>
393		</deny>
394		<deny>
395			<enabled>true</enabled>
396			<file>/BannerAds/</file>
397		</deny>
398		<deny>
399			<enabled>true</enabled>
400			<file>/banner_</file>
401		</deny>
402		<deny>
403			<enabled>true</enabled>
404			<host>imgis.com</host>
405		</deny>
406		<deny>
407			<enabled>true</enabled>
408			<host>atwola.com</host>
409		</deny>
410		<deny>
411			<enabled>true</enabled>
412			<host>fastclick.net</host>
413		</deny>
414		<deny>
415			<enabled>true</enabled>
416			<host>abz.com</host>
417		</deny>
418		<deny>
419			<enabled>true</enabled>
420			<host>tribalfusion.com</host>
421		</deny>
422		<deny>
423			<enabled>true</enabled>
424			<host>advertising.com</host>
425		</deny>
426		<deny>
427			<enabled>true</enabled>
428			<host>atdmt.com</host>
429		</deny>
430		<deny>
431			<enabled>true</enabled>
432			<host>spinbox\.(com|net)</host>
433		</deny>
434		<deny>
435			<enabled>true</enabled>
436			<host>linkexchange.com</host>
437		</deny>
438		<deny>
439			<enabled>true</enabled>
440			<host>hitbox.com</host>
441		</deny>
442		<deny>
443			<enabled>true</enabled>
444			<host>doubleclick.net</host>
445		</deny>
446		<deny>
447			<enabled>true</enabled>
448			<file>sponsorid</file>
449		</deny>
450		<deny>
451			<enabled>true</enabled>
452			<host>valueclick.com</host>
453		</deny>
454		<deny>
455			<enabled>true</enabled>
456			<host>click2net.com</host>
457		</deny>
458		<deny>
459			<enabled>true</enabled>
460			<host>mediaplex.com</host>
461		</deny>
462		<deny>
463			<enabled>true</enabled>
464			<host>247media.com</host>
465		</deny>
466		<deny>
467			<enabled>true</enabled>
468			<host>clickagents.com</host>
469		</deny>
470		<deny>
471			<enabled>true</enabled>
472			<host>adbutler.com</host>
473		</deny>
474		<deny>
475			<enabled>true</enabled>
476			<file>/servfu.pl</file>
477		</deny>
478		<deny>
479			<enabled>true</enabled>
480			<host>qkimg.net</host>
481		</deny>
482		<deny>
483			<enabled>true</enabled>
484			<host>realmedia.com</host>
485		</deny>
486		<deny>
487			<enabled>true</enabled>
488			<file>/RealMedia/</file>
489		</deny>
490		<deny>
491			<enabled>true</enabled>
492			<host>us.a1.yimg.com</host>
493		</deny>
494		<deny>
495			<enabled>true</enabled>
496			<host>clickheretofind.com</host>
497		</deny>
498		<deny>
499			<enabled>true</enabled>
500			<host>images.cybereps.com</host>
501		</deny>
502		<deny>
503			<enabled>true</enabled>
504			<host>adbureau.net</host>
505		</deny>
506		<deny>
507			<enabled>true</enabled>
508			<host>sfads.osdn.com</host>
509		</deny>
510		<deny>
511			<enabled>true</enabled>
512			<host>adflow.com</host>
513		</deny>
514		<deny>
515			<enabled>true</enabled>
516			<host>adprofs.com</host>
517		</deny>
518		<deny>
519			<enabled>true</enabled>
520			<host>zedo.com</host>
521		</deny>
522		<deny>
523			<enabled>true</enabled>
524			<host>digitalmedianet.com</host>
525		</deny>
526		<deny>
527			<enabled>true</enabled>
528			<host>ad-flow.com</host>
529		</deny>
530		<deny>
531			<enabled>true</enabled>
532			<file>/adsync/</file>
533		</deny>
534		<deny>
535			<enabled>true</enabled>
536			<host>adtech.de</host>
537		</deny>
538		<deny>
539			<enabled>true</enabled>
540			<host>netdirect.nl</host>
541		</deny>
542		<deny>
543			<enabled>true</enabled>
544			<file>_ad_</file>
545		</deny>
546		<deny>
547			<enabled>true</enabled>
548			<host>rcm-images.amazon.com</host>
549		</deny>
550		<deny>
551			<enabled>true</enabled>
552			<host>pamedia.com</host>
553		</deny>
554		<deny>
555			<enabled>true</enabled>
556			<host>msads.net</host>
557		</deny>
558		<deny>
559			<enabled>true</enabled>
560			<host>valuead.com</host>
561		</deny>
562		<deny>
563			<enabled>true</enabled>
564			<host>smartadserver.com</host>
565		</deny>
566		<deny>
567			<enabled>true</enabled>
568			<host>thisbanner.com</host>
569		</deny>
570		<deny>
571			<enabled>true</enabled>
572			<host>aaddzz.com</host>
573		</deny>
574		<deny>
575			<enabled>true</enabled>
576			<host>scripps.com</host>
577		</deny>
578		<deny>
579			<enabled>true</enabled>
580			<host>ru4.com</host>
581		</deny>
582		<deny>
583			<enabled>true</enabled>
584			<host>adtrix.net</host>
585		</deny>
586		<deny>
587			<enabled>true</enabled>
588			<host>falkag.net</host>
589		</deny>
590		<deny>
591			<enabled>true</enabled>
592			<file>/adceptdelivery.cgi</file>
593		</deny>
594	</filter>
595
596	<mime>
597		<enabled>true</enabled>
598		<policy>allow</policy>
599	</mime>
600
601	<rewrite>
602		<enabled>true</enabled>
603		<item>
604			<enabled>true</enabled>
605			<comment>Change referer to make page appear as if it were reloaded</comment>
606			<profiles>mask-referrer</profiles>
607			<pattern>^(GET|POST)\shttp://([^/]*)([^\s]*)(.*)^Referer:\shttp://([^/]*\.\.|)[^\n]*(.*)</pattern>
608			<replace>$1 http://$2$3$4Referer: http://$5$2$3$6</replace>
609			<which>,client,,</which>
610		</item>
611		<item>
612			<enabled>true</enabled>
613			<comment>Change link URL to linked text if linked text is a URL</comment>
614			<mime>text/html</mime>
615			<pattern>&lt;a([^&gt;]+)href\s*=\s*(&quot;|&apos;)[^&gt;]+(&quot;|&apos;)([^&gt;]*)&gt;\s*(http|ftp)://([^\[\s]+)\s*&lt;/a&gt;</pattern>
616			<replace>&lt;a$1href=$2$5://$6$3$4&gt;$5://$6&lt;/a&gt;</replace>
617			<which>,,body,</which>
618		</item>
619		<item>
620			<enabled>true</enabled>
621			<comment>remove http-equiv cookies</comment>
622			<mime>text/html</mime>
623			<pattern>&lt;meta\s+http-equiv=[&apos;&quot;]?set-cookie[&apos;&quot;]?\s+content=[^&gt;]*&gt;</pattern>
624			<which>,,body,</which>
625		</item>
626		<item>
627			<enabled>true</enabled>
628			<comment>remove 0x0 and 1x1 images (webbugs) - this screws up rendering of alot of pages, use with caution</comment>
629			<profiles>anti-webbug</profiles>
630			<mime>text/html</mime>
631			<pattern>&lt;img\s+[^&gt;]*?(width|height)\s*=\s*[&apos;&quot;]?(1|0)\D[^&gt;]*?(width|height)\s*=\s*[&apos;&quot;]?(0|1)(\D[^&gt;]*?)?&gt;</pattern>
632			<which>,,body,</which>
633		</item>
634		<item>
635			<enabled>true</enabled>
636			<comment>show link location along with custom label in statusbar</comment>
637			<mime>(text/html|application/x-javascript)</mime>
638			<pattern>(([\n =;{}]|window\.)(default)?status\s*=)</pattern>
639			<replace>$1this.href + &apos; label: &apos; +</replace>
640			<which>,,body,</which>
641		</item>
642		<item>
643			<enabled>true</enabled>
644			<comment>prevent scripts from seeing referrer</comment>
645			<profiles>mask-referrer</profiles>
646			<mime>text/html</mime>
647			<pattern>(&lt;script.*)document\.referrer(.*&lt;/script&gt;)</pattern>
648			<replace>$1&quot;nevermind&quot;$2</replace>
649			<which>,,body,</which>
650		</item>
651		<item>
652			<enabled>true</enabled>
653			<comment>prevent javascript&apos;s from seeing referrer</comment>
654			<profiles>mask-referrer</profiles>
655			<mime>application/x-javascript</mime>
656			<pattern>document\.referrer</pattern>
657			<replace>&quot;nevermind&quot;</replace>
658			<which>,,body,</which>
659		</item>
660		<item>
661			<enabled>true</enabled>
662			<comment>ensure new windows are resizable</comment>
663			<profiles>anti-window-altering</profiles>
664			<mime>text/html</mime>
665			<pattern>(&lt;a\s+href[^&gt;]+)resizable=[&apos;&quot;]?(no|0|false)[&apos;&quot;]?(.*&gt;)</pattern>
666			<replace>$1resizable=&quot;1&quot;$3</replace>
667			<which>,,body,</which>
668		</item>
669		<item>
670			<enabled>true</enabled>
671			<comment>ensure new windows have a location</comment>
672			<profiles>anti-window-altering</profiles>
673			<mime>text/html</mime>
674			<pattern>(&lt;a\s+href[^&gt;]+)location=[&apos;&quot;]?(no|0)[&apos;&quot;]?(.*&gt;)</pattern>
675			<replace>$1location=&quot;1&quot;$3</replace>
676			<which>,,body,</which>
677		</item>
678		<item>
679			<enabled>true</enabled>
680			<comment>ensure new windows have a menubar</comment>
681			<profiles>anti-window-altering</profiles>
682			<mime>text/html</mime>
683			<pattern>(&lt;a\s+href[^&gt;]+)menubar=[&apos;&quot;]?(no|0)[&apos;&quot;]?(.*&gt;)</pattern>
684			<replace>$1menubar=&quot;1&quot;$3</replace>
685			<which>,,body,</which>
686		</item>
687		<item>
688			<enabled>true</enabled>
689			<comment>ensure new windows have a status bar</comment>
690			<profiles>anti-window-altering</profiles>
691			<mime>text/html</mime>
692			<pattern>(&lt;a\s+href[^&gt;]+)status=[&apos;&quot;]?(no|0)[&apos;&quot;]?(.*&gt;)</pattern>
693			<replace>$1status=&quot;1&quot;$3</replace>
694			<which>,,body,</which>
695		</item>
696		<item>
697			<enabled>true</enabled>
698			<comment>ensure new windows have a scrollbar</comment>
699			<profiles>anti-window-altering</profiles>
700			<mime>text/html</mime>
701			<pattern>(&lt;a\s+href[^&gt;]+)scrolling=[&apos;&quot;]?(no|0|auto)[&apos;&quot;]?(.*&gt;)</pattern>
702			<replace>$1scrolling=&quot;no&quot;$3</replace>
703			<which>,,body,</which>
704		</item>
705		<item>
706			<enabled>true</enabled>
707			<comment>Block unrequested popups (1 of 3)</comment>
708			<profiles>anti-popup</profiles>
709			<mime>text/html</mime>
710			<pattern>&lt;body[^&gt;]*&gt;</pattern>
711			<replace>$0
712&lt;script&gt;
713function AntiPopup(a, b, c) {
714   return(null);
715}
716&lt;/script&gt;</replace>
717			<which>,,body,</which>
718		</item>
719		<item>
720			<enabled>true</enabled>
721			<comment>Block unrequested popups (2 of 3)</comment>
722			<profiles>anti-popup</profiles>
723			<mime>(text/html|application/x-javascript)</mime>
724			<pattern>([\n;{}()=]\s*)(window|this|parent)\.open\(</pattern>
725			<replace>$1AntiPopup(</replace>
726			<which>,,body,</which>
727		</item>
728		<item>
729			<enabled>true</enabled>
730			<comment>Block unrequested popups (3 of 3)</comment>
731			<profiles>anti-popup</profiles>
732			<mime>text/html</mime>
733			<pattern>&lt;/body&gt;</pattern>
734			<replace>&lt;script&gt;
735function AntiPopup(a, b, c) {
736   return(window.open(a, b, c));
737}
738&lt;/script&gt;
739$0</replace>
740			<which>,,body,</which>
741		</item>
742		<item>
743			<enabled>true</enabled>
744			<comment>Mask useragent in javascript</comment>
745			<mime>(text/html|application/x-javascript)</mime>
746			<pattern>([\n;{}()=]\s*)navigator.userAgent</pattern>
747			<replace>$1&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)&quot;</replace>
748			<which>,,body,</which>
749		</item>
750		<item>
751			<enabled>true</enabled>
752			<comment>Remove non-standard &lt;blink&gt; tags</comment>
753			<profiles>non-standard-html</profiles>
754			<mime>text/html</mime>
755			<pattern>&lt;blink&gt;(.*)&lt;/blink&gt;</pattern>
756			<replace>$1</replace>
757			<which>,,body,</which>
758		</item>
759		<item>
760			<enabled>true</enabled>
761			<comment>Remove non-standard &lt;marquee&gt; tags</comment>
762			<profiles>non-standard-html</profiles>
763			<mime>text/html</mime>
764			<pattern>&lt;marquee[^&gt;]*&gt;(.*)&lt;/marquee&gt;</pattern>
765			<replace>$1</replace>
766			<which>,,body,</which>
767		</item>
768		<item>
769			<enabled>true</enabled>
770			<comment>Workaround for a bug in apache 1.3</comment>
771			<profiles>apache-targz-workaround</profiles>
772			<pattern>^(GET\shttp://[^\n]*\n)</pattern>
773			<replace>$1Accept-Encoding: gzip
774</replace>
775			<which>,client,,</which>
776		</item>
777	</rewrite>
778</mman>
779