AdguardTeam / AdGuardHome

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

Change the blocked services so that the pause schedule can be for specific services #7146

Open virtualvoyager367 opened 3 months ago

virtualvoyager367 commented 3 months ago

Prerequisites

The problem

When you add a schedule to it , it unblocks ALL services within the schedule

Proposed solution

Make it so you select what services it unblocks for the schedule so certain things stay blocked while others can be used within certain times

Alternatives considered and additional information

Only other ways are to modify the software with your own code that is NOT online because it is not made yet

reijop commented 3 weeks ago

I am doing this currently via the API with ( curls | jq | sed ) from a home assistant rest_switch and a schedule. It turns just youtube on and off for a specific client, but the overhead smells like Yak. +1 for wanting this in the service directly.

Use case - kids network with a list of services I never want enabled as well as a few services I wish to enable on a schedule.

I suppose a workaround would also be to blacklist via custom filtering rules and then use the client services schedule for the time-allowed services. This would be 100% easier if there were a way to specify a shortcut in the rewrite language for an existing 'service' as defined by adguard, so you could do something like:

# blacklist by service, but only on one client, always.
||[service:roblox]*^$important,$client=kinder