From 953e70e9df894d2fce0a47438d8fe42cf362d1ac Mon Sep 17 00:00:00 2001 From: Nick Spaargaren Date: Wed, 12 Jun 2024 18:53:33 +0200 Subject: [PATCH] Fix regexes in readme --- README.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b5861e53..90e7453a 100644 --- a/README.md +++ b/README.md @@ -39,31 +39,39 @@ https://raw.githubusercontent.com/nickspaargaren/no-google/master/categories/fib ### :warning: Important regex filters not included in blocklist -> .\*[\`^.\`]l.google.com$ +``` +.*[`^.`]l.google.com$ +``` For example tygbrbooefk4.cache.l.google.com -> .\*[\`^.\`]googlevideo.com$ +``` +.*[`^.`]googlevideo.com$ +``` For example r14---sn-vgqs7ned.googlevideo.com ## Youtube Advertisements Regex -> ^r[0123456789]+((-{3})|(\.))sn-.{8}\.googlevideo\.com$ +``` +^r[0123456789]+((-{3})|(.))sn-.{8}.googlevideo.com$ +``` NOTE: Youtube advertisements are pretty difficult to block trough DNS, as they mainly use a couple of domains for delivering advertisements, but they may also use those same domains for delivering other types of contents that you might not want to block. ## Regex filters -> (._\.|^)((think)?with)?google($|((adservices|apis|mail|static|syndication|tagmanager|tagservices|usercontent|zip|-analytics)($|\..+))) -> (._\.|^)g(gpht|mail|static|v(t[12])?)($|\..+) ->(.*\.|^)chrom(e(experiments)?|ium)($|\..+) -> (._\.|^)ampproject($|\..+) -> (._\.|^)doubleclick($|\..+) ->(.*\.|^)firebaseio($|\..+) -> (._\.|^)googlevideo($|\..+) -> (._\.|^)waze($|\..+) ->(.*\.|^)y(outube|timg)($|\..+) +``` +(.*\.|^)((think)?with)?google($|((adservices|apis|mail|static|syndication|tagmanager|tagservices|usercontent|zip|-analytics)($|\..+))) +(.*\.|^)g(gpht|mail|static|v(t[12])?)($|\..+) +(.*\.|^)chrom(e(experiments)?|ium)($|\..+) +(.*\.|^)ampproject($|\..+) +(.*\.|^)doubleclick($|\..+) +(.*\.|^)firebaseio($|\..+) +(.*\.|^)googlevideo($|\..+) +(.*\.|^)waze($|\..+) +(.*\.|^)y(outube|timg)($|\..+) +``` You can also easily use the modified [pihole regex installer script](https://github.com/mmotti/pihole-regex) by [@mmoti](https://github.com/mmotti) by executing this terminal command from your raspberry Pi Pi-hole server.