Open Elimelech opened 2 years ago
Currently hBlock only supports plain text lists, adding support for compressed lists is not a priority for me right now, but I leave this issue open in case I implement it in the future.
I wrote a simple script:
export DISPLAY=:0.0;
su luba -c "notify-send 'Attention!' 'update deny.list'"; sleep 3 cd /tmp mkdir /hblock curl -o /tmp/hblock/phishing.tar.gz 'http://dsi.ut-capitole.fr/blacklists/download/phishing.tar.gz' ; cd /tmp/hblock/ tar -xvzf /tmp/hblock/phishing.tar.gz ; mv -f /tmp/hblock/phishing/domains /etc/hblock/deny.list; chmod 644 /etc/hblock/deny.list;
Based on your use case you can also make this one-liner:
curl -fsSL 'https://dsi.ut-capitole.fr/blacklists/download/phishing.tar.gz' | tar -xzO 'phishing/domains' | hblock -D-
https://dsi.ut-capitole.fr/blacklists
I am not a coder, so excuse my question here, but do help if you can pls.
I know these maybe a bit extra questions, but they are nice to add. Also, I have these on a shared hosting, so I do not have root access, but I am able to run hblock via cron daily. :)
Hi! How to download files like archives, for example: dsi.ut-capitole.fr/blacklists/download/phishing.tar.gz