New article for DNSfiltering syntax

Added:

* New article for DNSfiltering syntax (EN/RU)
This commit is contained in:
TheHasagi 2019-06-20 12:16:16 +03:00
parent 31fee5d1ed
commit 953307fab2
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,21 @@
---
title: DNS fitlering rules syntax
taxonomy:
category:
- docs
visible: true
---
Some AdGuard products provide DNS ad blocking feature. To learn more about the principle of DNS filtering, read [this KB article](https://kb.adguard.com/en/general/dns-filtering-android). Compared to the [traditional ad blocking](https://kb.adguard.com/en/general/how-ad-blocking-works), DNS filtering is more "crude" and allows less customization. It doesn't support the complex [syntax](https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters) we use in our filters, but it does support simplified syntax that allows you to block certain domains.
Examples:
1. ||example.org^ - block access to the example.org domain and all it's subdomains
2. @@||example.org^ - unblock access to the example.org domain and all it's subdomains
3. 0.0.0.0 example.org - AdGuard will now return 0.0.0.0 address for the example.org domain (but not it's subdomains)
4. ! Here goes a comment - just a comment
5. # Also a comment - just a comment
6. /REGEX/ - block access to the domains matching the specified regular expression
Use this syntax to create or import rules to DNS filter. If you have any questions, feel free to post them on our [forum](https://forum.adguard.com/index.php?forums/69/).

View File

@ -0,0 +1,22 @@
---
title: Создание правил для DNS фильтрации
taxonomy:
category:
- docs
visible: true
---
Некоторые продукты AdGuard предоставляют функцию блокировки рекламы по DNS. Чтобы узнать больше о DNS-фильтрации, перейдите в [эту статью](https://kb.adguard.com/ru/general/dns-filtering-android) Базы знаний. В сравнении с [традиционной](https://kb.adguard.com/ru/general/how-ad-blocking-works) блокировкой рекламы, DNS-фильтрация является более "грубым" методом и не даёт таких широких возможностей настройки. Она не поддерживает сложный [синтаксис](https://kb.adguard.com/ru/general/how-to-create-your-own-ad-filters), используемый нами в обычных фильтрах, но зато поддерживает упрощённый синтаксис, позволяющий блокировать те или иные домены.
Примеры:
1. ||example.org^ - блокирует доступ к example.org и ко всем поддоменам
2. @@||example.org^ - разблокирует доступ к example.org и ко всем поддоменам
3. 0.0.0.0 example.org - AdGuard будет возвращать 0.0.0.0 адрес для example.org (но не к его поддоменам)
4. ! Это комментарий - комментирование
5. # И это комментарий - тоже комментирование
6. /REGEX/ - блокирует доступ к доменам, соответствующим заданному регулярному выражению
Используйте этот синтаксис, чтобы создавать или импортировать правила в DNS-фильтр. Если у вас есть какие-либо вопросы, вы можете задать их на нашем [форуме](https://forum.adguard.com/index.php?forums/25/).