@@ -32,8 +32,8 @@ On Windows:
32
32
CONFIG is a relative (to current dir) or absolute path to config file
33
33
containing list of input hosts files (default: 'adhosts2privoxy.conf'). More on
34
34
config file in next section. Config file should have the same encoding as
35
- current locale one . ACTION_FILE is a relative (to current dir) or absolute path
36
- to resulting Privoxy action file (default: 'hosts.action'). Action file will be
35
+ current locale. ACTION_FILE is a relative (to current dir) or absolute path to
36
+ resulting Privoxy action file (default: 'hosts.action'). Action file will be
37
37
written using current locale encoding. HOSTS_DIR is a relative (to current dir)
38
38
or absolute path to directory where hosts files are located or will be
39
39
downloaded to (defaults to current directory). You can specify absolute path
@@ -44,7 +44,7 @@ Built-in download functionality is good enough for most hosted hosts files on
44
44
the web. It takes in account Content-Disposition and Content-Type headers,
45
45
supports Internationalized Domain Names. But you can always specify local file
46
46
path for hosts file in config, instead of URL, if you don't need to download
47
- anything or prefer to rely on external download utilities such Wget or Curl.
47
+ anything or prefer to rely on external download utilities such as Wget or Curl.
48
48
49
49
When hosts file is processed by the script, it's hostnames (and aliases) become
50
50
patterns for 'block' action in Privoxy action file. Multiple hostnames are
@@ -64,19 +64,19 @@ After processing it, resulting action file is similar to this:
64
64
.ad2.foo.baz
65
65
66
66
Script algorithm skips malformed hosts entries or entries with "non-blocking"
67
- IPs. Only following IPs are cosidered "blocking": whole 127.0.0.0/8 network
67
+ IPs. Only following IPs are considered "blocking": whole 127.0.0.0/8 network
68
68
(incl. 127.0.0.1), 0.0.0.0, ::1, ::. Also, typical "loopback" and "localhost"
69
69
hostnames are ignored.
70
70
71
- Some of the defaults and pre-defined values, mentioned in this section, can be
71
+ Some of the defaults and predefined values, mentioned in this section, can be
72
72
easily changed in the script source code - they are all initialized in the very
73
73
beginning of the script, hard to miss. Refer to the source code for more
74
74
information on modifying defaults.
75
75
76
76
5. Configuration file
77
77
---------------------
78
- Configuration file consists of any number sections, each corresponding to hosts
79
- file to be processed. Section starts with '[NAME]' header and followed by
78
+ Configuration file consists of any number of sections, each corresponding to
79
+ hosts file to be processed. Section starts with '[NAME]' header and followed by
80
80
'VARIABLE: VALUE' or 'VARIABLE=VALUE' entries. Comment lines start with '#' or
81
81
';', inline comments start with ';'. Possible VARIABLEs are: 'Url', 'File',
82
82
'Keep' and 'Encoding'. Example config file:
@@ -96,8 +96,8 @@ should be set accordingly. In this example, hosts file will be downloaded from
96
96
'http://foo.bar/adhosts.txt'.
97
97
98
98
'File' variable contains path where downloaded file will be saved or, in case
99
- of 'Url' is omitted, path to locally stored hosts file. 'File' variable is
100
- optional only when 'Url' is provided: in absebse of 'File' variable, hosts
99
+ if 'Url' is omitted, path to locally stored hosts file. 'File' variable is
100
+ optional only when 'Url' is provided: in absence of 'File' variable, hosts
101
101
filename will be deduced from Content-Disposition header or web address itself.
102
102
'File' contains relative or absolute path. Relative paths (this includes
103
103
automatically deduced filenames of downloaded hosts files) are calculated
@@ -106,15 +106,15 @@ directory by default). In this example, downloaded hosts file will be saved in
106
106
current directory under filename 'hosts'.
107
107
108
108
By default, after script finishes processing hosts file, it deletes it. To
109
- control this behaviour 'Keep' variable is used - if it translates to True
109
+ control this behavior 'Keep' variable is used - if it translates to True
110
110
(values '1', 'yes', 'true' and 'on'), file won't be deleted after being
111
111
processed. If it translates to False (values '0', 'no', 'false' and 'off') or
112
112
variable is omitted - default action takes place and file becomes deleted. In
113
113
this example, hosts file won't be deleted after being processed.
114
114
115
115
Hosts files can have wide variety of encodings. So, when reading hosts file,
116
116
script uses encoding specified in Content-Type header or in current locale, if
117
- Content-Type encoding is not availabe or when hosts file is stored locally.
117
+ Content-Type encoding is not available or when hosts file is stored locally.
118
118
Automatically selected hosts file encoding can be overridden with 'Encoding'
119
119
variable. In this example, downloaded hosts file will be read using 'UTF-8'
120
120
encoding.
0 commit comments