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.000100
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 10 Next › Last »

setone commented on 2014-09-14 06:32

Hi, I noticed that even though I've set a cron job to update hostsblock once a week, the actual hosts.block file has not been updated since the end of July. Stepping through the script showed that the ismeh.com domain does not seem to be up and running any more, and as a result the hostsblock script stops processing, i.e. fails out on the spot. So whatever files might have been updated after that one in the list do not get updated, and the hosts.block file does not get updated either.

So I commented out http://www.ismeh.com/HOSTS in my hosts.rc file and now everything updates completely.

Wouldn't it make sense to continue processing the list of files even though a domain (such as ismeh.com) can't be resolved?

BTW - I love this thing.

jav209 commented on 2014-04-17 12:20

@ilpianista:
I use the following guide:
https://wiki.archlinux.org/index.php/Systemd/cron_functionality

And then use the following service file (call it hostsblock.service):
----------------------------------------
[Unit]
Description=Block bad hosts
Requires=network.target
After=network.target
ConditionACPower=true

[Service]
Type=oneshot
ExecStart=/usr/bin/hostsblock

[Install]
WantedBy=timer-daily.target
---------------------------------

And then systemctl --system daemon-reload and systemctl enable hostsblock.service (i.e. the above file)

I need to set aside a little time soon to roll in some code clean-ups and updates, such as this one, sometime soon, so stay tuned!

ilpianista commented on 2014-04-17 10:29

Hi, could you add systemd timers?

jav209 commented on 2013-06-03 21:34

Version 0.12.3 (03.06.2013)
*hostblock-urlcheck: issue with colored prompt on white-backgrounded terminals fixed

jav209 commented on 2013-06-02 15:34

Version 0.12.2 (02.06.2013)
*whitelist, blacklist not applying fixed

jav209 commented on 2013-06-01 01:43

Version 0.12.1 (31.05.2013)
*quick fix of previous change.

jav209 commented on 2013-05-31 20:24

Version 0.12 (31.05.2013)
*changed order of processing of black and while lists.

Version 0.11.3 (31.05.2013)
*changed installation path according to new Arch Linux practices.

WonderWoofy commented on 2013-05-31 14:41

I left a comment in the forum thread as well. But the PKGBUILD needs to be changed so that the scripts are put into /usr/bin as the move is near! If any of you users want to do this, it is as easy as editing the PKGBUILD and changing sbin to bin. Or for this particular package you can do:

$ sed -i 's|sbin|bin|g' /path/to/PKGBUILD

jav209 commented on 2012-12-09 18:44

Version 0.11.2 (09.12.2012)
*swapped out use of md5sums for ls mod times to improve performance

Ideas for further development:
*Make use of GNU Parallel to speed up download times and processing, possibly at the risk of a perl dependency.
*Autodetect archiving utils in order to compress archived hosts file.

jav209 commented on 2012-09-13 15:24

Version 0.11.1 (13.09.2012)
*accumulated fixes with feedback (thanks tlvince)
*fixed hostsblock-urlcheck's misidentification of colons in urls