Package Details: hostsblock 0.999.8.1-1

Git Clone URL: https://aur.archlinux.org/hostsblock.git (read-only, click to copy)
Package Base: hostsblock
Description: An ad- and malware-blocking utility for POSIX systems
Upstream URL: https://github.com/gaenserich/hostsblock
Keywords: adblock
Licenses: GPL
Submitter: jav209
Maintainer: jav209
Last Packager: jav209
Votes: 50
Popularity: 0.000086
First Submitted: 2012-05-03 23:18
Last Updated: 2019-04-07 21:14

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 ... Next › Last »

setone commented on 2015-05-09 21:01

I just got around to installing this update. For various reasons I run dnsmasq on a different box than the hostsblock box, so hostsblock should not assume that it is working with dnsmasq. However I also require my hostsfile NOT to be /etc/hosts, and this causes hostsblock to fail, because the hostsblock-common.sh script hard-associates dnscacher="none" with hostsfile="/etc/hosts", i.e. you can't have one without the other. This seems unnecessary - I have dns somewhere else and I don't need/want hostsblock to know or care about it, and I have my hostsfile somewhere else too, because I need it that way. Why shouldn't the dnscacher="none" option just quietly tell hostsblock: "there is nothing for you to restart, so don't do anything." My workarounds are (1) change the script (easy but a PITA to maintain), or (2) configure dnscache="manual", which causes hostsblock to try to restart "manual".

jav209 commented on 2015-04-26 01:27

Here's Alpha 2, with a couple more tidbits:
* sanitized permissions (world readable)
* service and timer files for systemd
* Fixed misidentification of certain non-interactive sessions

csllbr commented on 2015-04-25 05:04

sorry, my mistake - I intended to vote but clicked on the wrong link

jav209 commented on 2015-04-24 22:34

@csllbr: Any reason for marking this as our of date?

@madalu: service and timer files forthcoming. I'll update the file permissions once I double check what the best practices are with executables that should only be handled by root.

madalu commented on 2015-04-24 14:49

Also, is there a reason for the very restrictive permissions on the script?

$ cd usr/bin
$ ls -al hostsblock

-rwx------ 1 root root 8733 Apr 24 09:06 hostsblock

This prevents the hostsblock script from being found by normal users with commands like which.

On my machine there is not a single other binary in /usr/bin that has such permissions.

madalu commented on 2015-04-24 14:33

Finally, is there a reason for the very restrictive permissions on the script?

$ cd usr/bin
$ ls -al hostsblock

-rwx------ 1 root root 8733 Apr 24 09:06 hostsblock

This prevents the hostsblock script from being found by normal users with commands like which.

On my machine there is not a single other binary in /usr/bin that has such permissions.

man hostsblock also does not work as a normal user

madalu commented on 2015-04-24 14:32

Finally, is there a reason for the very restrictive permissions on the script?

$ cd usr/bin
$ ls -al hostsblock

-rwx------ 1 root root 8733 Apr 24 09:06 hostsblock

This prevents the hostsblock script from being found by normal users with commands like which.

On my machine there is not a single other binary in /usr/bin that has such permissions.

madalu commented on 2015-04-24 14:29

Also there seems to be a regression in a couple of the urls in hostsblock.conf.
For instance, the old rc.conf had the url:

http://hosts-file.net/ad_servers.txt

The new hostsblock.conf has the url:

http://hosts-file.net/ad_servers.asp

In a regular browser, this redirects to http://hosts-file.net/ad_servers.txt.

But with the hostsblock script it simply downloads the following html:

<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="ad_servers.txt">here</a>.</body>

madalu commented on 2015-04-24 14:14

Thanks for the update. The new PKGBUILD does not download or install service files. Might I ask for the reason for their exclusion in this version? (I had been relying on them for automated updates.)

jav209 commented on 2015-04-24 01:13

WARNING: 0.999.1 is ALPHA quality yet, so use with caution.

When installing, note that rc.conf is no longer used. Instead use /etc/hostsblock/hostsblock.conf.

As ALPHA-quality software, this version does not have documentation yet. Volunteers are welcome to help in creating the hostsblock.8, hostsblock.conf.8, and hostsblock-urlcheck.8 man files. To do so, go here: https://github.com/gaenserich/hostsblock

That said, this should be a significant improvement over the stable version by most performance metrics. Please do submit bug reports here https://github.com/gaenserich/hostsblock/issues.