How to Block Youtube using Regex

Please follow the below template, it will help us to help you!

Expected Behaviour:

_[We need a regex that will block youtube ads gostnames]_pihole -d

Actual Behaviour:

[when we are using the below regex, its blocking some videos]

Debug Token:

[https://tricorder.pi-hole.net/f0yqsufbsi]

There was no regex listed in your post.

Here is a few ads host name....
r1---sn-a5mekner.googlevideo.com
r1---sn-a5meknes.googlevideo.com
r1---sn-a5msen7z.googlevideo.com
r1---sn-aigl6nl7.googlevideo.com
r2---sn-a5meknle.googlevideo.com
r2---sn-a5mlrn76.googlevideo.com
r2---sn-hpa7zne6.googlevideo.com
r2---sn-q4fl6ner.googlevideo.com
r2---sn-q4fl6ney.googlevideo.com
r3---sn-5go7yner.googlevideo.com
r3---sn-a5meknle.googlevideo.com

Here is a regex that I wrote...
r[0-9]---sn-[a-z0-9]*.googlevideo.com

If I'm using the above Regex...than the all youtube video getting slow load or stopped working.

as for now i'm using a list added to the pihole...

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.