Skip to content

Commit e4af1b0

Browse files
committed
3.5.0
1 parent 9653391 commit e4af1b0

File tree

6 files changed

+69
-57
lines changed

6 files changed

+69
-57
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ hBlock is available in various package managers. Please check the [PACKAGES.md](
3535
The latest available version can also be installed manually by running the following commands:
3636

3737
```sh
38-
curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.5/hblock' \
39-
&& echo '2db6f52a14a3b87ff86b0fde3583f1a635ff580d26b36f8a103997a614314c6f /tmp/hblock' | shasum -c \
38+
curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.5.0/hblock' \
39+
&& echo 'bb8f632fcb101ea017fb00a8d02925dfc7d5a6d075e2cb30e4bc293e5c0628b1 /tmp/hblock' | shasum -c \
4040
&& sudo mv /tmp/hblock /usr/local/bin/hblock \
4141
&& sudo chown 0:0 /usr/local/bin/hblock \
4242
&& sudo chmod 755 /usr/local/bin/hblock

hblock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44
export LC_ALL='C'
55

66
# Metadata.
7-
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.4.5'; fi
7+
if [ -z "${HBLOCK_VERSION+x}" ]; then HBLOCK_VERSION='3.5.0'; fi
88
if [ -z "${HBLOCK_AUTHOR+x}" ]; then HBLOCK_AUTHOR='Héctor Molinero Fernández <[email protected]>'; fi
99
if [ -z "${HBLOCK_LICENSE+x}" ]; then HBLOCK_LICENSE='MIT, https://opensource.org/licenses/MIT'; fi
1010
if [ -z "${HBLOCK_REPOSITORY+x}" ]; then HBLOCK_REPOSITORY='https://github.com/hectorm/hblock'; fi

hblock.1

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2-
.TH HBLOCK "1" "May 2024" "hBlock 3.4.5" "User Commands"
2+
.TH HBLOCK "1" "October 2024" "hBlock 3.5.0" "User Commands"
33
.SH NAME
4-
hBlock \- manual page for hBlock 3.4.5
4+
hBlock \- manual page for hBlock 3.5.0
55
.SH SYNOPSIS
66
.B hblock
77
[\fI\,OPTION\/\fR]...
@@ -156,6 +156,12 @@ makes these subdomains redundant.
156156
.IP
157157
(default: false)
158158
.HP
159+
\fB\-n\fR, \fB\-\-retry\fR <NUMBER>, ${HBLOCK_RETRY}
160+
.IP
161+
Number of times to retry a failed download.
162+
.IP
163+
(default: 0)
164+
.HP
159165
\fB\-c\fR, \fB\-\-[no\-]continue\fR, ${HBLOCK_CONTINUE}
160166
.IP
161167
Do not abort if a download error occurs.

hblock.1.md

+56-50
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NAME
22

3-
hBlock - manual page for hBlock 3.4.5
3+
hBlock - manual page for hBlock 3.5.0
44

55
# SYNOPSIS
66

@@ -18,178 +18,184 @@ from connecting to them.
1818
**-O**, **--output** \<FILE\|-\>, \${HBLOCK_OUTPUT_FILE}
1919

2020
> Output file location.
21-
>
21+
2222
> If equals "-", it is printed to stdout.
23-
>
23+
2424
> (default: */etc/hosts*)
2525
2626
**-H**, **--header** \<FILE\|builtin\|none\|-\>, \${HBLOCK_HEADER_FILE}
2727

2828
> File to be included at the beginning of the output file.
29-
>
29+
3030
> If equals "builtin", the built-in value is used.
31-
>
31+
3232
> If equals "none", an empty value is used.
33-
>
33+
3434
> If equals "-", the stdin content is used.
35-
>
35+
3636
> If unspecified and any of the following files exists, its content is
3737
> used.
38-
>
38+
3939
> \${XDG_CONFIG_HOME}/hblock/header
40-
>
40+
4141
> */etc/hblock/header*
42-
>
42+
4343
> (default: builtin)
4444
4545
**-F**, **--footer** \<FILE\|builtin\|none\|-\>, \${HBLOCK_FOOTER_FILE}
4646

4747
> File to be included at the end of the output file.
48-
>
48+
4949
> If equals "builtin", the built-in value is used.
50-
>
50+
5151
> If equals "none", an empty value is used.
52-
>
52+
5353
> If equals "-", the stdin content is used.
54-
>
54+
5555
> If unspecified and any of the following files exists, its content is
5656
> used.
57-
>
57+
5858
> \${XDG_CONFIG_HOME}/hblock/footer
59-
>
59+
6060
> */etc/hblock/footer*
61-
>
61+
6262
> (default: builtin)
6363
6464
**-S**, **--sources** \<FILE\|builtin\|none\|-\>,
6565
\${HBLOCK_SOURCES_FILE}
6666

6767
> File with line separated URLs used to generate the blocklist.
68-
>
68+
6969
> If equals "builtin", the built-in value is used.
70-
>
70+
7171
> If equals "none", an empty value is used.
72-
>
72+
7373
> If equals "-", the stdin content is used.
74-
>
74+
7575
> If unspecified and any of the following files exists, its content is
7676
> used.
77-
>
77+
7878
> \${XDG_CONFIG_HOME}/hblock/sources.list
79-
>
79+
8080
> */etc/hblock/sources.list*
81-
>
81+
8282
> (default: builtin)
8383
8484
**-A**, **--allowlist** \<FILE\|builtin\|none\|-\>,
8585
\${HBLOCK_ALLOWLIST_FILE}
8686

8787
> File with line separated entries to be removed from the blocklist.
88-
>
88+
8989
> If equals "builtin", the built-in value is used.
90-
>
90+
9191
> If equals "none", an empty value is used.
92-
>
92+
9393
> If equals "-", the stdin content is used.
94-
>
94+
9595
> If unspecified and any of the following files exists, its content is
9696
> used.
97-
>
97+
9898
> \${XDG_CONFIG_HOME}/hblock/allow.list
99-
>
99+
100100
> */etc/hblock/allow.list*
101-
>
101+
102102
> (default: builtin)
103103
104104
**-D**, **--denylist** \<FILE\|builtin\|none\|-\>,
105105
\${HBLOCK_DENYLIST_FILE}
106106

107107
> File with line separated entries to be added to the blocklist.
108-
>
108+
109109
> If equals "builtin", the built-in value is used.
110-
>
110+
111111
> If equals "none", an empty value is used.
112-
>
112+
113113
> If equals "-", the stdin content is used.
114-
>
114+
115115
> If unspecified and any of the following files exists, its content is
116116
> used.
117-
>
117+
118118
> \${XDG_CONFIG_HOME}/hblock/deny.list
119-
>
119+
120120
> */etc/hblock/deny.list*
121-
>
121+
122122
> (default: builtin)
123123
124124
**-R**, **--redirection** \<REDIRECTION\>, \${HBLOCK_REDIRECTION}
125125

126126
> Redirection for all entries in the blocklist.
127-
>
127+
128128
> (default: 0.0.0.0)
129129
130130
**-W**, **--wrap** \<NUMBER\>, \${HBLOCK_WRAP}
131131

132132
> Break blocklist lines after this number of entries.
133-
>
133+
134134
> (default: 1)
135135
136136
**-T**, **--template** \<TEMPLATE\>, \${HBLOCK_TEMPLATE}
137137

138138
> Template applied to each entry.
139-
>
139+
140140
> %D = \<DOMAIN\>, %R = \<REDIRECTION\>
141-
>
141+
142142
> (default: %R %D)
143143
144144
**-C**, **--comment** \<COMMENT\>, \${HBLOCK_COMMENT}
145145

146146
> Character used for comments.
147-
>
147+
148148
> (default: \#)
149149
150150
**-l**, **--\[no-\]lenient**, \${HBLOCK_LENIENT}
151151

152152
> Match all entries from sources regardless of their IP, instead of
153153
> 0.0.0.0, 127.0.0.1, ::, ::1 or nothing.
154-
>
154+
155155
> (default: false)
156156
157157
**-r**, **--\[no-\]regex**, \${HBLOCK_REGEX}
158158

159159
> Use POSIX BREs in the allowlist instead of fixed strings.
160-
>
160+
161161
> (default: false)
162162
163163
**-f**, **--\[no-\]filter-subdomains**, \${HBLOCK_FILTER_SUBDOMAINS}
164164

165165
> Do not include subdomains when the parent domain is also blocked.
166166
> Useful for reducing the blocklist size in cases such as when DNS
167167
> blocking makes these subdomains redundant.
168-
>
168+
169169
> (default: false)
170170
171+
**-n**, **--retry** \<NUMBER\>, \${HBLOCK_RETRY}
172+
173+
> Number of times to retry a failed download.
174+
175+
> (default: 0)
176+
171177
**-c**, **--\[no-\]continue**, \${HBLOCK_CONTINUE}
172178

173179
> Do not abort if a download error occurs.
174-
>
180+
175181
> (default: false)
176182
177183
**-p**, **--parallel**, \${HBLOCK_PARALLEL}
178184

179185
> Maximum concurrency for parallel downloads.
180-
>
186+
181187
> (default: 4)
182188
183189
**-q**, **--\[no-\]quiet**, \${HBLOCK_QUIET}
184190

185191
> Suppress non-error messages.
186-
>
192+
187193
> (default: false)
188194
189195
**-x**, **--color** \<auto\|true\|false\>, \${HBLOCK_COLOR}
190196

191197
> Colorize the output.
192-
>
198+
193199
> (default: auto)
194200
195201
**-v**, **--version**

hblock.sha256

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2db6f52a14a3b87ff86b0fde3583f1a635ff580d26b36f8a103997a614314c6f hblock
1+
bb8f632fcb101ea017fb00a8d02925dfc7d5a6d075e2cb30e4bc293e5c0628b1 hblock

resources/systemd/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The following commands will schedule a daily update of the hosts file. See [this
44
more information about systemd timers.
55

66
```sh
7-
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.4.5/resources/systemd/hblock.{service,timer}' \
7+
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.5.0/resources/systemd/hblock.{service,timer}' \
88
&& echo '45980a80506df48cbfa6dd18d20f0ad4300744344408a0f87560b2be73b7c607 /tmp/hblock.service' | shasum -c \
99
&& echo '87a7ba5067d4c565aca96659b0dce230471a6ba35fbce1d3e9d02b264da4dc38 /tmp/hblock.timer' | shasum -c \
1010
&& sudo mv /tmp/hblock.{service,timer} /etc/systemd/system/ \

0 commit comments

Comments
 (0)