OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: gspannu on November 10, 2023, 05:25:31 PM

Title: Unbound AdBlocking - How to use regex?
Post by: gspannu on November 10, 2023, 05:25:31 PM
Anyone know how to improve unbound AdBlocking capabilities by adding regex rules??

Regex in Unbound would make Unbound adblocking really powerful and inline with PiHole and AdGuardHome.

Examples of some regex blocking that I am looking to add:

/^(.+[_.-])?adse?rv(er?|ice)?s?[0-9]*[_.-]/
/^(.+[_.-])?telemetry[_.-]/
/^ad([sxv]?[0-9]*|system)[_.-]([^.[:space:]]+\.){1,}|[_.-]ad([sxv]?[0-9]*|system)[_.-]/


Help needed:
How do I add the above regex rules?
Which file, location, etc..?
Instructions or anyone confirm that this is not supported by Unbound in OPNsense