Skip to content

Instantly share code, notes, and snippets.

@slashwq
Last active March 16, 2024 09:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save slashwq/6771da91b65ce899630aab3d823f1b88 to your computer and use it in GitHub Desktop.
Save slashwq/6771da91b65ce899630aab3d823f1b88 to your computer and use it in GitHub Desktop.

Pi-hole Regex Blocklist

These are my personal regex blocks that I use in my pi-hole instance. I'm publicizing them in the event they may be useful for other people.

TLD blocks

(\.|^)cn$	
(\.|^)ru$

Regex list from mmotti/pihole-regex

^(.+[_.-])?adse?rv(er?|ice)?s?[0-9]*[_.-]	
^(.+[_.-])?telemetry[_.-]	
^adim(age|g)s?[0-9]*[_.-]	
^adtrack(er|ing)?[0-9]*[_.-]	
^advert(s|is(ing|ements?))?[0-9]*[_.-]	
^aff(iliat(es?|ion))?[_.-]	
^analytics?[_.-]	
^banners?[_.-]	
^beacons?[0-9]*[_.-]	
^count(ers?)?[0-9]*[_.-]	
^mads\.	
^pixels?[-.]	
^stat(s|istics)?[0-9]*[_.-]	
^track(ing)?[0-9]*[_.-]	
^ad([sxv]?[0-9]*|system)[_.-]([^.[:space:]]+\.){1,}|[_.-]ad([sxv]?[0-9]*|system)[_.-]	

Roku domains

(ads|captive|logs)\.roku\.com$	

Tuya/Geeni Domains

(\.|^)meari\.com\.cn$	
(\.|^)tuyacn\.com$	
(\.|^)ty-us-storage[0-9]*[_.-]	
(\.|^)merai\.com\.cn$	
(\.|^)iot-dns\.com$	
(\.|^)qq\.com$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment