Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Adding a KB article 'How to add your own filter' #527

Merged
merged 5 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: 'How to add your own DNS filter'
taxonomy:
category:
- docs

---

If you want to block ads or tracking outside of Safari on iOS, you will have to opt for DNS blocking. Most commonly, you need to use a blocking DNS server (for example, [AdGuard DNS](https://adguard.com/en/adguard-dns/overview.html)), but there is another way in AdGuard apps for iOS: you can add your own DNS filter or hosts file.

This method has several advantages:
1) You can use any DNS server at your discretion and you are not tied up to a specific blocking server.
2) You can add multiple DNS filters and/or hosts files at the same time, but you can't use multiple DNS servers at once.

To add your own DNS filter* in the AdGuard app for iOS or AdGuard Pro, follow these steps:

**⠀Don't confuse it with adding a custom filter to Safari.*

1. Open AdGuard Pro Settings —> General —> Enable *Advanced mode*.
<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/advanced_mode_en.jpg" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

2. Go to DNS protection —> DNS filtering —> DNS filters —> Press *Add filter*.
<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/Pro/dns_filters.png" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

Let's illustrate how to add your own DNS filter by an example of our [AdGuard DNS filter](https://kb.adguard.com/en/general/adguard-ad-filters#domains).

> DNS filter is composed from several other filters (English filter, Social media filter, Spyware filter, Mobile ads filter, EasyList and EasyPrivacy) and simplified to be better compatible with DNS-level ad blocking.

3. Paste this link: [https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt](https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt) to add AdGuard DNS filter (or use a link to any other filter you want to add).
<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/Pro/new_dns_filter.png" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

That's it! You've successfully added a custom filter!
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Как добавить собственный DNS-фильтр'
taxonomy:
category:
- docs

---

Если вы хотите блокировать рекламу или трекинг за пределами браузера Safari на iOS, вам придётся прибегнуть к DNS-блокировке. Как правило, для этого необходимо использовать блокирующий DNS-сервер (например, [AdGuard DNS](https://adguard.com/ru/adguard-dns/overview.html)), но в приложениях AdGuard для iOS есть и другой способ: можно добавить свой DNS-фильтр или hosts-файл.

У этого метода есть несколько преимуществ:
1) Вы можете использовать любой DNS-сервер на своё усмотрение и не привязаны к конкретному блокирующему серверу.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут вроде как не про серверы говориться а плюсы использования фильтров

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну так о том и речь. Если ты хочешь блочить что-то, то включаешь, например, AdGuard DNS. А так добавил наш фильтр и юзай клаудфляр на здоровье.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по написанному в первом непонятно что речь об этом

2) Вы можете добавить сразу несколько DNS-фильтров и/или файлов hosts одновременно, но не можете использовать сразу несколько DNS-серверов.

Чтобы добавить собственный DNS-фильтр* в приложении AdGuard для iOS или AdGuard Pro, выполните следующие шаги:

**⠀Не путайте с добавлением своего фильтра в Safari.*

1. Открыть Настройки AdGuard Pro —> Общие —> Включить Режим разработчика.
<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/advanced_mode_ru.jpg" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

2. Перейти в DNS-защиту —> Фильтрацию DNS-запросов —> DNS-фильтры —> Нажать «Добавить фильтр».
<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/Pro/dns_filters_ru.png" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

Для примера возьмём наш [DNS-фильтр](https://kb.adguard.com/ru/general/adguard-ad-filters#domains).

> DNS-фильтр составлен из нескольких фильтров (Английский фильтр, Фильтр социальных сетей, Фильтр счётчиков и систем аналитики, Фильтр мобильной рекламы, EasyList и EasyPrivacy) и упрощён для лучшей совместимости с блокировкой рекламы на уровне DNS.

<img src="https://cdn.adguard.com/public/Adguard/Release_notes/iOS/v4.0/Pro/new_dns_filter_ru.png" style="border: 1px solid #efefef; max-height: 700px; max-width: 350px; padding: 2px;">

3. Вставить эту ссылку: [https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt](https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt) (или используйте ссылку для любого другого фильтра, который вам нужен).

Вот и всё! Вы успешно добавили свой фильтр.