Enhancement for block domains and services (Instant Block) #1064

Open
opened 2026-03-04 01:02:44 -05:00 by deekerman · 4 comments
Owner

Originally created by @ghost on GitHub (Nov 3, 2019).

Issue Details

  • Version of AdGuard Home server
    • v0.99.1
  • How did you setup DNS configuration
    • System
  • Operating system and version
    • Windows 10 1903

Steps to Reproduce

  • Play any video on youtube and keep the tab opened.
  • Apply custom filtering rule for ||youtube.com^ ||ytimg.com^ ||youtu.be^ or activate 'Youtube' through blocked services.
  • Back to browser, ofcourse you can keep watch existing video till end, go and watch suggested video display on side panel etc.

Affected feature requests

(important for parental control as well)

Expected Behavior

block immediately include established connections.

Originally created by @ghost on GitHub (Nov 3, 2019). #### Issue Details * Version of AdGuard Home server * v0.99.1 * How did you setup DNS configuration * System * Operating system and version * Windows 10 1903 #### Steps to Reproduce - Play any video on youtube and keep the tab opened. - Apply custom filtering rule for `||youtube.com^ ||ytimg.com^ ||youtu.be^` or activate 'Youtube' through blocked services. - Back to browser, ofcourse you can keep watch existing video till end, go and watch suggested video display on side panel etc. Affected feature requests - https://github.com/AdguardTeam/AdGuardHome/issues/951 (scheduled blocked services) - #1203 (timed blocklists and whitelists) (important for parental control as well) #### Expected Behavior block immediately include established connections.
Author
Owner

@copacetic82 commented on GitHub (Nov 4, 2019):

YouTube will stop working once Windows makes a new DNS request, and gets a reply from AGH. This usually only happens when the TTL of the DNS entry runs out (for youtube I get 5mins), if you manually do a "ipfconfig /flushdns" on Windows, reconnect the network. Even then the browser might still show cached content.

This DNS query "decision" is made by the client. To achieve immediate blocking, AGH would have to overwrite the TTL of "legitimate" DNS replies to e.g. 1sek, in case the user wants to block certain services.

@copacetic82 commented on GitHub (Nov 4, 2019): YouTube will stop working once Windows makes a new DNS request, and gets a reply from AGH. This usually only happens when the TTL of the DNS entry runs out (for youtube I get 5mins), if you manually do a "ipfconfig /flushdns" on Windows, reconnect the network. Even then the browser might still show cached content. This DNS query "decision" is made by the client. To achieve immediate blocking, AGH would have to overwrite the TTL of "legitimate" DNS replies to e.g. 1sek, in case the user wants to block certain services.
Author
Owner

@ameshkov commented on GitHub (Nov 7, 2019):

@copacetic82 even if AG rewrites the TTL, it won't help with connections that are already open.

Unfortunately, it's impossible to implement this request on the DNS-level.

It is possible to do on a proxy-level once #391 is done, but we didn't plan to implement parental control features there so I'll mark this as a low-priority feature request.

@ameshkov commented on GitHub (Nov 7, 2019): @copacetic82 even if AG rewrites the TTL, it won't help with connections that are already open. Unfortunately, it's impossible to implement this request on the DNS-level. It is possible to do on a proxy-level once #391 is done, but we didn't plan to implement parental control features there so I'll mark this as a low-priority feature request.
Author
Owner

@JoeJenningsDMC commented on GitHub (Feb 11, 2020):

@ameshkov, I'd like to kindly request that this feature that multiple people have asked for (Including myself) is not considered as a low priority ticket.

@JoeJenningsDMC commented on GitHub (Feb 11, 2020): @ameshkov, I'd like to kindly request that this feature that multiple people have asked for (Including myself) is not considered as a low priority ticket.
Author
Owner

@ameshkov commented on GitHub (Feb 11, 2020):

@JoeJenningsDMC please add the upvote reaction to the image. This is how we sort issues when we look for the most demanded

@ameshkov commented on GitHub (Feb 11, 2020): @JoeJenningsDMC please add the upvote reaction to the image. This is how we sort issues when we look for the most demanded
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#1064
No description provided.