- Jan 15, 2024
- 536
I've been experimenting with Cloudflare Gateway's free plan for some time now (Serious Discussion - Cloudflare Gateway Free Plan). There are no ad-blocking categories or features available. I came across a blog post on blocking ads with Cloudflare Gateway at (Block Ads With Cloudflare Zero Trust). I implemented the REGEX policy mentioned in the blog, and it effectively blocked ads.
This is the REGEX policy or example mentioned in the blog. (Instead of traditional REGEX, Cloudflare Gateway uses Rust to evaluate expressions.)
Could you provide me with more REGEX values like that? Also, suggest safe-to-use REGEX values.
This is the REGEX policy or example mentioned in the blog. (Instead of traditional REGEX, Cloudflare Gateway uses Rust to evaluate expressions.)
Code:
(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|adspruce|adsrvr|adswizz|adtelligent|adventori|adzerk|aerserv|amplitude|aniview|anzuinfra|apester|aralego|atdmt|atwola|bannersnack|batmobi|bluecava|blueconic|carambo|casalemediacriteo|crittercismriteo|crittercism|revcontent|ijinshan|imrworldwide|inmobi|marketo|moatads|moatpixel|mookie|perfectaudience|permutive|pubmatic|pushwoosh|rayjump|revcontent|revjet|rfihub|richrelevance|rqmob|rubiconproject|onetag|samba|scopely|scorecardresearch|shareaholic|sharethis|sharethrough|smaato|snapads|speedshiftmedia|supersonicads|swrve|taboola|tremorhub|unity3d|vertamedia|videohub|vungle|wzrkt|xiaomi|yieldlove|yieldmo|yieldoptimizer|baidu|chinanet|yandex|googlesyndication)
Could you provide me with more REGEX values like that? Also, suggest safe-to-use REGEX values.