📄 junkbuster.1
字号:
.TH JUNKBUSTER 1 "http://www.junkbusters.com/ht/en/ijb2.0man.html".SH NAME\fBjunkbuster\fP- TheInternet JunkbusterProxy\s-2(TM)\s+2.SH SYNOPSIS\fBjunkbuster\fP\fI\&configfile\fP(Version 2.0 onwards).br\fBjunkbstr.exe\fP\fI\&configfile\fP(Windows).br\fBjunkbuster\fP[-a][-y][-s][-c][-v].br[-u user_agent][-r referer][-t from].br[-b blockfile][-j jarfile][-l logfile].br[-w NAME=VALUE][-x Header_text].br[-h [bind_host_address][:bind_port]].br[-f forward_host[:port]][-d N].br[-g gw_protocol[:[gw_host][:gw_port]]].br(Version 1.4 and earlier).SH DESCRIPTION\fBjunkbuster\fPis an instrumentable proxy that filters the \s-2HTTP\s0stream betweenweb servers and browsers.Its main purpose is to enhance privacy..PVersions before 2.0 used command-line options;Versions from 2.0 onward use a configuration file.The following descriptions of the options first give the oldercommand-line usage, then the new configfile line..PIn Versions 2.0.1 upwards on Windows,a start-up message is printed and the configuration is read from the file\fC\&junkbstr.ini\fPif it exists and no argument was given..PAll files except the configfileare checked for changes before each page is fetched,so they may edited without restarting the proxy..SS OPTIONS.TP.\" anchor: o_b blockfile\fI-b blockfile\fP (Old) blockfile \fIblockfile\fP (New)Block\" ijbfaq.html#blockingrequests to\s-2URL\s0smatching any pattern given in the lines of the\fI\&blockfile\fP.The\fBjunkbuster\fPinstead returns status 202, indicating that the request has been accepted(though not completed),and amessage identifying itself\" ijbfaq.html#show(though the browser maydisplay only a broken image icon).(Versions before 2.0 returned an error 403 (Forbidden).)The syntax of a pattern is\fB\&[domain][:port][/path]\fP(the\fB\&http://\fPor\fB\&https://\fPprotocol part is omitted).To decide if a pattern matches a target, the domains are compared first,then the paths. .PTo compare the domains,the pattern domain and the targetdomain specified in the\s-2URL\s0are each broken into their components.(Components are separated by the\fC\&.\fP(period) character.)Next each of the target componentsis compared with the corresponding pattern component: last with last,next-to-last with next-to-last, and so on.(This is called\fIright-anchored\fPmatching.)If all of the pattern components find their match in the target,then the domains are considered a match.Case is irrelevant when comparing domain components..PA successfullymatching pattern can be an anchored substring of a target, butnot vice versa.Thus if a pattern doesn't specify a domain,it matches all domains..\" anchor: wildcardFurthermore, when comparing two components,the components must either match in their entirety or up to a wildcard\fC\&* \fP(star character) in the pattern. The wildcard featureimplements only a "prefix" match capability ("abc*" vs. "abcdefg"),not suffix matching ("*efg" vs. "abcdefg") orinfix matching ("abc*efg" vs. "abcdefg").The feature is restricted to the domain component;it is unrelated to the optionalregular expressionfeature in the path(described below).\" ijbman.html#regex.PIf a numeric portis specified in the pattern domain, then the target port mustmatch as well. The default port in a target is port 80..PIf the domain and port match,then the target\s-2URL\s0path is checked fora match against the path in the pattern.Paths are compared with a simple case-sensitiveleft-anchored substring comparison.Once again, the pattern can be ananchored substring of the target, but not vice versa.A path of\fC\&/\fP(slash) would match all paths. Wildcards are not considered inpath comparisons..PFor example, the target\s-2URL\s0.br.ti +0.25i\fB\&the.yellow-brick-road.com/TinMan/has_no_brain\fP.brwould be matched (and blocked) by the following patterns.br.ti +0.25i\fB\&yellow-brick-road.com\fP.brand.br.ti +0.25i\fB\&Yellow*.COM\fP.brand.br.ti +0.25i\fB\&/TinM\fP.brbut not.br.ti +0.25i\fB\&follow.the.yellow-brick-road.com\fP.bror.br.ti +0.25i\fB\&/tinman\fP.br.PComments in a blockfile start with a\fB\&#\fP(hash) character and end at a new line.Blank lines are also ignored..PLines beginning with a\fC\&~\fP(tilde) character are taken to beexceptions:\" ijbfaq.html#exceptionsa\s-2URL\s0blocked by previous patterns that matches the rest ofthe line is let through. (The last match wins.).PPatternsmay contain\s-2POSIX\s0regular expressions\" ijbfaq.html#regexprovided the\fBjunkbuster\fPwas compiled with this option(the default in Version 2.0 on).The idiom\fC\&/*.*/ad\fPcan then be usedto match any\s-2URL\s0containing\fC\&/ad\fP(such as\fC\&http://nomatterwhere.com/images/advert/g3487.gif\fPfor example).These expressionsdon't work\" ijbman.html#substringin the domain part..PIn version 1.3 and laterthe blockfile and cookiefile are checked for changes before each request..TP.\" anchor: o_w wafer\fI-w NAME=VALUE\fP (Old) wafer \fINAME=VALUE\fP (New)Specifies a pair to be sent as a cookie with every requestto the server.\" ijbfaq.html#wafers(Such boring cookies are called\fI\&wafers\fP.)This option may be called more than once to generate multiple wafers.The originalNetscape specificationprohibitedsemi-colons, commas and white space;these characters will be\s-2URL\s0-encodedif used in wafers.The Path and Domain attributes are not currently supported..TP.\" anchor: o_c cookiefile\fI-c cookiefile\fP (Old) cookiefile \fIcookiefile\fP (New)Enforce the cookie management policy specified in the\fI\&cookiefile.\fP.\" anchor: javaIf this option is not used all cookies are silently crunched,so that users who never want cookies aren't bothered by browsersasking whether each cookie should be accepted.However, cookies canstill get through\" ijbfaq.html#breakthroughviaJavaScript\" links.html#javascriptand\s-2SSL\s0,so alerts should be left on..PIn Version 1.2 and laterthis option must be followed by afilename\" ijbfaq.html#crumblecontaining instructions on which sites are allowed toreceive and set cookies..\" anchor: dropBy default cookies are dropped in both the browser's requestand the server's response, unless the\s-2URL\s0requested matches an entry in the\fI\&cookiefile\fP.The matching algorithm is the same as for the blockfile.A leading\fC\&>\fPcharacter allowsserver-bound\" ijbfaq.html#directionalcookies only;a\fC\&<\fPallows only browser-bound cookies;a\fC\&~\fPcharacter stops cookies inboth directions.\" ijbfaq.html#crumbleThus a cookiefile containing a single line with the two characters\fC\&>*\fPwill pass on all cookies to servers but not give any new ones to the browser..TP.\" anchor: o_j jarfile\fI-j jarfile\fP (Old) jarfile \fIjarfile\fP (New)All Set-cookie attempts by the server arelogged\" ijbfaq.html#jarto\fI\&jarfile\fP.If no wafer is specified,one containing acanned notice\" ijbfaq.html#notice(the \fI\&vanilla wafer\fP)is added as an alert to the serverunless thesuppress-vanilla-wafer\" ijbman.html#suppress-vanilla-waferoption is invoked..TP.\" anchor: o_v suppress-vanilla-wafer\fI-v\fP (Old) suppress-vanilla-wafer \fI\fP (New)Suppress the vanilla wafer..TP.\" anchor: o_t from\fI-t from\fP (Old) from \fIfrom\fP (New)If the browserdiscloses an email address\" ijbfaq.html#fromin the\fB\&FROM\fPheader (most don't),replace it with\fI\&from.\fPIf\fI\&from\fPis set to\fB\&.\fP(the period character)the\fB\&FROM\fPis passed to the server unchanged.The default is to delete the\fB\&FROM\fPheader..TP.\" anchor: o_r referer\fI-r referer\fP (Old) referer \fIreferer\fP (New)Whenever the browser discloses the\s-2URL\s0thatled to\" ijbfaq.html#refererthe current request,replace it with\fI\&referer.\fPIf\fI\&referer\fPis set to\fB\&.\fP(period)the \s-2URL\s0is passed to the server unchanged.In Version 1.4and later, if referer is set to \fB\&@\fP(at) the\s-2URL\s0is sent in cases where the cookiefilespecifies that a cookie would be sent.(No way to send bogus referers selectively is provided.)The default is to delete Referer..PVersion 2.0 also accepts the spelling\fC\&referrer\fP,which most dictionaries consider correct..TP.\" anchor: o_u user-agent\fI-u user-agent\fP (Old) user-agent \fIuser-agent\fP (New)Information disclosed by the browserabout itself\" ijbfaq.html#agentis replaced with the value\fI\&user-agent.\fPIf\fI\&user-agent\fPis set to\fB\&.\fP(period)the\fB\&User-Agent\fPheader is passed to the server unchanged,along with any\fB\&UA\fPheaders produced by\s-2MS-IE\s0(which would otherwise be deleted).In Version 1.4and later, if\fI\&user-agent\fPis set to\fB\&@\fP(at) these headers are sent unchanged in cases where the cookiefilespecifies that a cookie would be sent,otherwise only default\fB\&User-Agent\fPheader is sent.That defaultis Mozilla/3.0 (Netscape)with an unremarkableMacintosh\" ijbfaq.html#inferconfiguration.If used with a browser less advanced than Mozilla/3.0 or IE-3, the defaultmay encourage pages containing extensions that confuse the browser..TP.\" anchor: o_h listen-address\fI-h [host][:port]\fP (Old) listen-address \fI[host][:port]\fP (New)If\fI\&host\fPis specified,bind the\fBjunkbuster\fPto that\s-2IP\s0address.If a\fI\&port\fPis specified, use it.The defaultportis 8000;the default host is\fC\&localhost\fP.Before Version 2.0.2,the default was to bind to all \s-2IP\s0addresses(\fB\&INADDR_ANY\fP);but this has been restricted to\fB\&localhost\fPto avoid unintended security breaches.(To open the proxy to all, use the line.br.ti +0.25i\fB\&listen-address :8000\fP.brin the configuration file.).TP.\" anchor: o_f forwardfile\fI-f forward_host[:port]\fP (Old) forwardfile \fIforwardfile\fP (New)Version 1.X required all\s-2HTTP\s0requests from the client to be forwarded to the same destination.Version 2.0 takes its routing specification from a\fI\&forwardfile\fP,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -