Unbound AdBlocking - How to use regex?

Started by gspannu, November 10, 2023, 05:25:31 PM

Previous topic - Next topic
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