Created
August 26, 2023 18:05
-
-
Save jftuga/385e0ae1652ab7003f1ecee77224c40f to your computer and use it in GitHub Desktop.
update Pi-hole docker version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE=pihole | |
LENGTH=12 | |
LOG="${0%.*}.log" | |
CONTAINER=$(docker ps --format "{{.ID}}" --filter name=${IMAGE}) | |
if [ "${#CONTAINER}" -ne "${LENGTH}" ] ; then | |
echo "No running container for image: ${IMAGE}" | |
exit 1 | |
fi | |
echo >> ${LOG} | |
echo >> ${LOG} | |
echo >> ${LOG} | |
echo "==============================================================" >> ${LOG} | |
date >> ${LOG} | |
echo "==============================================================" >> ${LOG} | |
docker exec -t ${CONTAINER} pihole updateGravity >> ${LOG} 2>&1 |
Block Lists
- https://blocklistproject.github.io/Lists/everything.txt
- https://blocklistproject.github.io/Lists/smart-tv.txt
- https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
- https://zerodot1.gitlab.io/CoinBlockerLists/hosts
- https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt
- https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
- https://v.firebog.net/hosts/RPiList-Malware.txt
- https://v.firebog.net/hosts/RPiList-Phishing.txt
- https://raw.githubusercontent.com/AssoEchap/stalkerware-indicators/master/generated/hosts
- https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
- https://phishing.army/download/phishing_army_blocklist_extended.txt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cron entry:
34 7 * * 6 /root/update_pihole_block_lists.sh