TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
3.84k stars 400 forks source link

[Feature Request] Api endpoint to enable/disable ad blocking #953

Closed Amateur-God closed 1 week ago

Amateur-God commented 1 week ago

would it be possible to add an API endpoint which can be used to enable and disable ad blocking

ShreyasZare commented 1 week ago

Thanks for asking. There is already HTTP API for all options. All the option that you see in the admin portal use HTTP API itself.

For disabling blocking, just use the following API call: http://localhost:5380/api/settings/set?token=x&enableBlocking=false

You can read more about this call here.

Amateur-God commented 1 week ago

Thank you, i thought i remembered seeing the api call in the docs but when i read them again to find it i must have missed that