{ "created": "2019-07-05T12:24:11Z", "hierarchy": [ { "name": "ROOT", "type": "folder", "uri": "/ROOT" }, { "name": "PiHole Notes", "type": "article", "uri": "PiHole_Notes" } ], "html": "\n\n \n \n \n \n\n \n \n\n \n \n \n \n \n\n PiHole Notes\n\n \n \n \n \n
\n
\n \n
\n
\n \n \n\n\n

PiHole Notes

\n\n

Maintenance

\n
# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n\n# If it complains about an old version of the OS, skip the check\ncurl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash\n

Logs

\n
tail -f /var/log/pihole.log\n

New Regexes

\n

Added this to /etc/pihole/regex.list. Just looks for tracking keywords.

\n
# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n
\n

Then restart via sudo service pihole-FTL restart

\n

New Blocklists

\n

Find a big list here. Find the “ticked” lists here (these are safe to add and won’t cause issues.)

\n

To install, go to Settings -> Blocklists and add them there. These used to go in /etc/pihole/adlists.list but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.

\n

SmartTV Blocklists

\n

See this GitHub gist. I have Samsung TVs, so some caveats apply about blocking domains like cdn.samsungcloudsolution.com and (especially) time.samsungcloudsolution.com.

\n

Google AMP 🙄

\n

Add this list

\n\n\n
\n \n
\n \n \n \n \n \n\n", "id": "4cadc800-3bc2-5ed0-aa12-3e7ba5912c99", "modified": "2022-06-13T23:23:48Z", "revisions": [ { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2022-06-13T23:23:48Z", "id": "6be928c4c8de048934c03e3c61539c9ceec7d59a", "shortId": "6be928c4", "subject": "Update config.yml", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n\n# If it complains about an old version of the OS, skip the check\ncurl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n### Google AMP 🙄\n\nAdd [this list](https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt)\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2022-01-14T01:53:03Z", "id": "c5507eb2e23c68f398aeef36ca909d04f7584528", "shortId": "c5507eb2", "subject": "Note on OS check skip", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n\n# If it complains about an old version of the OS, skip the check\ncurl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n### Google AMP 🙄\n\nAdd [this list](https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt)\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2021-12-30T03:08:39Z", "id": "f71cfb504dcf5585d4d32a95e2fbe3785c9e3fac", "shortId": "f71cfb50", "subject": "Add new recipe; cleanup\n", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n### Google AMP 🙄\n\nAdd [this list](https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt)\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2020-02-02T19:25:22Z", "id": "1678e34872b804da70a74bcf19de8b046c69114a", "shortId": "1678e348", "subject": "AMP -> Blocklists", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n### Google AMP 🙄\n\nAdd [this list](https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt)\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2020-02-02T19:17:42Z", "id": "7b962262fc1f11826158054833f1be163691fe94", "shortId": "7b962262", "subject": "Note on SQLite + New blocklists", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-22T14:33:29Z", "id": "ba68a6fcf3c6407822138e2a104b72288be55742", "shortId": "ba68a6fc", "subject": "Add SmartTV Blocklist Notes", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). These go in `/etc/pihole/adlists.list`. Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nSmartTV Blocklists\n------------------\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-20T18:12:38Z", "id": "2eda4f78c515a6722657c501c622a386ddcf18d8", "shortId": "2eda4f78", "subject": "Add note on `adlists.list`", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). These go in `/etc/pihole/adlists.list`. Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-05T13:23:48Z", "id": "130efc7ffd962ac23d04243eb454417a2020b8e7", "shortId": "130efc7f", "subject": "Note on logs", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-05T13:19:03Z", "id": "8043d54aaa7e8cc05235c5ab70be142f265de899", "shortId": "8043d54a", "subject": "Fix headings", "content": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-05T13:17:20Z", "id": "b70f069c531b06d00565880e789e93c1000589cf", "shortId": "b70f069c", "subject": "Now with comments!", "content": "Maintenance\n===========\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n==============================================================\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n\n# AMP, which no one asked for\n# Full list: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt\n^(.+\\.)?amp\\.cloudflare\\.com$\n^(.+\\.)?cdn\\.ampproject\\.org$\n```\n\nThen restart via `sudo service pihole-FTL restart`\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2019-07-05T12:24:11Z", "id": "bb8a3bc6a614f493984c2c1baa6e1c8e40f2297f", "shortId": "bb8a3bc6", "subject": "Create PiHole Notes.md", "content": "New [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n==============================================================\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n```\n\nThen restart via `sudo service pihole-FTL restart`\n" } ], "sizeInBytes": 1931, "source": "Maintenance\n-----------\n\n```bash\n# Upgrade PiHole and Gravity lists\npihole -up && pihole -g\n\n# Restart DNS Subsystem\npihole restartdns\n\n# If it complains about an old version of the OS, skip the check\ncurl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash\n```\n\nLogs\n----\n\n```bash\ntail -f /var/log/pihole.log\n```\n\nNew [Regexes](https://docs.pi-hole.net/ftldns/regex/overview/)\n--------------------------------------------------------------\n\nAdded [this](https://github.com/mmotti/pihole-regex/blob/master/regex.list) to `/etc/pihole/regex.list`. Just looks for tracking keywords.\n\n```\n# https://github.com/mmotti/pihole-regex/blob/master/regex.list\n^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]\n^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]\n^(.+[-_.])??xn--\n^adim(age|g)s?[0-9]*[-_.]\n^adtrack(er|ing)?[0-9]*[-.]\n^advert(s|is(ing|ements?))?[0-9]*[-_.]\n^aff(iliat(es?|ion))?[-.]\n^analytics?[-.]\n^banners?[-.]\n^beacons?[0-9]*[-.]\n^count(ers?)?[0-9]*[-.]\n^pixels?[-.]\n^stat(s|istics)?[0-9]*[-.]\n^telemetry[-.]\n^track(ers?|ing)?[0-9]*[-.]\n^traff(ic)?[-.]\n\n# Instart Logic\n(.*)\\.g00\\.(.*).\n```\n\nThen restart via `sudo service pihole-FTL restart`\n\nNew Blocklists\n--------------\n\nFind a [big list here](https://firebog.net/). Find the \"ticked\" lists [here](https://v.firebog.net/hosts/lists.php) (these are safe to add and won't cause issues.) \n\nTo install, go to Settings -> Blocklists and add them there. These _used_ to go in `/etc/pihole/adlists.list` but adding these via the UI is better since PiHole 5 will use SQLite instead of flat text files.\n\n### SmartTV Blocklists\n\nSee [this GitHub gist](https://github.com/Perflyst/PiHoleBlocklist/blob/master/SmartTV.txt). I have Samsung TVs, so some caveats apply about blocking domains like `cdn.samsungcloudsolution.com` and (especially) `time.samsungcloudsolution.com`.\n\n### Google AMP 🙄\n\nAdd [this list](https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt)\n", "title": "PiHole Notes", "untracked": false, "uri": "/PiHole_Notes" }