Skip to content

Temporarily disable with API (and via UI) #1333

@shapiro125

Description

@shapiro125

In order to make this work, we need to change how the "Disable protection" button looks like.

Use the same approach as for the "Block" button in the Query Log:
image

There's a fixed list of options that can be used:

  • Pause for 30 seconds
  • Pause for 1 minute
  • Pause for 10 minutes
  • Pause for 1 hour
  • Pause until tomorrow

When the protection is paused temporarily, "Enable protection" button becomes a countdown:
image

Original feature request text (replaced by @ameshkov)

Hello -- I'm trying to figure out if there's a way to disable AdGuard Home temporarily within the API. For example, Pi-hole allows disabling for some number of seconds through theirs (http://pi.hole/admin/api.php?disable=300). Unless I'm missing something, I've only figured out how to switch on vs off or make a script that switches it off, sleeps for a certain number of seconds, and then switches it back on.

Thanks!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions