AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.63k stars 1.84k forks source link

schedules for blocklists / whitelists #7373

Open dvelayosmd opened 4 weeks ago

dvelayosmd commented 4 weeks ago

Prerequisites

The problem

sometimes, you want to have blocklists that applies only at a specific schedule (not as defined on https://github.com/AdguardTeam/AdGuardHome/issues/1203 , which specifies an activaction/deactivation of a custom whitelist / blocklist for an specific time inteval)

E.G: you have an specific blocklist for games websites, but it must only be active at study time (Monday to Friday, 17:00-21:00)

Proposed solution

if you create a new blocklist or edit an existent blocklist, a new button "schedule" could launch the same schedule definition screen than the "Pause service blocking" "new schedule" button:

image

image

this will show on the blocklist edit screen as this:

image

also, you could add a modifier with a checkbox, in order to define the state of the blocklist on this schedule (enable the blocklist or disable the blocklist, e.g: the "enable this games blocklist only Monday to friday" VS "disable this games blocklist at the weekend")

this info can't be summarized on the general blocklist page, but you could include an indicator to signal that a specific blocklist has an schedule, with a clock icon or something like this

Alternatives considered and additional information

you can enable or disable manually the block / whitelists, but it's a manual process