I don’t see the purpose.
Switching parameters of unbound on or off, without describing the background is not desirable. Doing this with a simple web page is dangerous!
Adding local policies can be done in /etc/unbound/local.d
, yet. To do this you must adhere the unbound.conf syntax. This means you have to read the documentation, which gives clues for the effects.
How is the set of parameters chosen?
In case of RPZ DNS filtering, what does your approach better do than @jon 's RPZ addon ( see also the community thread )?