OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: gspannu on February 06, 2023, 12:16:35 PM

Title: Unbound Python Module: HELP: How to add regex blocking to Unbound?
Post by: gspannu on February 06, 2023, 12:16:35 PM
Now that Unbound is supporting Python for its DNSBL (adblocking), it should be possible to support regex blocking in addition to normal blocking lists?

Regex support would make Unbound adblocking really powerful and makes it 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:
Title: Re: Unbound Python Module: HELP: How to add regex blocking to Unbound?
Post by: gspannu on May 04, 2023, 01:24:42 PM
Bump.

Anyone...?

Could anyone assist in writing Unbound regex rules please?