Skip to content

Instantly share code, notes, and snippets.

@maxrodrigo
Created October 20, 2021 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxrodrigo/a6ac7a36564fad28b83e68d397260436 to your computer and use it in GitHub Desktop.
Save maxrodrigo/a6ac7a36564fad28b83e68d397260436 to your computer and use it in GitHub Desktop.
Add blocklists to gravity.db with sqlite
curl https://v.firebog.net/hosts/lists.php?type=tick | \
xargs -I {} sqlite3 /etc/pihole/gravity.db "INSERT OR IGNORE INTO adlist (address, comment) VALUES ('{}','firebog');"
pihole -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment