AdguardTeam / AdGuardHome

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

Filter rule for particular domain #1452

Closed eoopx closed 4 years ago

eoopx commented 4 years ago

How to create unblock access rule only for a domain that blocked by CNAME or IP in response? i mean without letting any other domain to use that CNAME or IP

ameshkov commented 4 years ago

Simply do something like this: @@||example.org^ where example.org is the domain that you want to unblock

eoopx commented 4 years ago

this site https://getfider.com uses cdnjs.cloudflare.com so how to create unblock rule only belong to that domain without letting for others?

(not about 'blocked by CNAME or IP in response')

ameshkov commented 4 years ago

@@||getfider.com^

eoopx commented 4 years ago

No. getfider.com is not blocked and no relation belong to that site hosting but cdnjs.cloudflare.com use for that site.

You can enable 'cloudflare' in blocked services next visit to getfider.com and you'll see page broken so i ask how to unblock cdnjs.cloudflare.com only for that domain?

ameshkov commented 4 years ago

That's what I am talking about, if you add @@||getfider.com^ rule, it will be unblocked (and all other websites that use cdnjs.cloudflare.com will still be blocked)

eoopx commented 4 years ago

Doesn't work. did you test it?

ameshkov commented 4 years ago

@eoopx yeah, but I've been testing it with custom filtering rules, but not with "blocked services".

Here's an example:

  1. Add ||api.facebook.com^
  2. nslookup graph.facebook.com will return 0.0.0.0 because it will be blocked by cname
  3. Add @@||graph.facebook.com^
  4. nslookup graph.facebook.com will start working properly
ghost commented 4 years ago

@ameshkov something misunderstand here.

cdnjs.cloudflare.com isn't a cname of getfider.com Eg If data.org has embed video from youtube or some images from picscdn.org that already blocked then i dont know if possible to unblock such domains only for data.org.