DNS Policy w/ big.oisd.nl list
Hello! I’m trying to implement adblocking into the DNS policy through (Rust) regex. I found that someone was able to format it like this:
(advert|adserv|adsystem|doubleclick|2mdn|truecaller|uberads|206ads|360in|360yield|3lift|a2z|aarki|ad2iction|adcolony|addthis|adform|adhaven|adlooxtracking|admicro|adnxs|adpushup|adroll|adsafeprotected|adsbynimbus)
I was wondering if there is a parser that I can use to convert the regex from https://big.oisd.nl/regex to the regex supported by cloudflare. I’m not familiar with regex but I would appreciate if anyone can help!
2 Replies
You can just use terrafork to upload lists with the domains of the ads and then use those lists in a policy.
Marco Lancini's Blog
Serverless Ad Blocking with Cloudflare Gateway
How I blocked advertisements in my home office, mimicking the Pi-hole's behaviour, using only serverless technologies (Cloudflare Gateway, to be precise).