Menu
EN

What is DNS filtering

DNS filtering is a mechanism for blocking access to certain content on the Internet. When you go to a website, your browser sends the website name (for example, google.com) to a DNS server. The DNS server answers with the IP address of the server hosting this website.

In particular, DNS filtering is used to block access to ad servers or malicious websites. Simply put, a filtering DNS server does not send back their IP addresses. If you want to learn more about how DNS filtering works, read the AdGuard DNS Knowledge base article.

DNS filtering is available in AdGuard apps for Windows, Mac, Android, and iOS.

Filters and filtering rules

Filtering rules tell DNS servers which domains to block and which to allow. They are strings written using a specific syntax. A group of rules is called a filter.

For instance, the AdGuard DNS filter has about 50K rules that block requests to advertising and tracking domains. It is preinstalled in all AdGuard products that support DNS filtering. To find and enable this filter:

  • in AdGuard for Mac: PreferencesDNSFilters → enable AdGuard DNS filter
  • in AdGuard for Windows: SettingsDNS ProtectionOpen DNS filters editor → check the DNS Filter box
  • in AdGuard for iOS: enable Advanced Mode in Settings, then go to ProtectionDNS ProtectionDNS filteringDNS filters, and enable the AdGuard DNS filter
  • in AdGuard for Android: SettingsDNS FilteringDNS requests blocking → enable AdGuard DNS filter

User rules and filters

You can customize DNS filtering in the AdGuard products by adding rules and filters – third-party and your own. But be careful, as adding inaccurate rules or too many filters can cause some sites to malfunction.

How to add third-party DNS filters and where to find them

To add a new filter, enter a link to it or import it from your device, and AdGuard will detect it automatically. To find the input field, follow these instructions:

  • in AdGuard for Mac: PreferencesDNSFilters → the plus icon at the bottom-left corner
  • in AdGuard for Windows: SettingsDNS protectionOpen DNS filters editor → the plus icon at the bottom-left corner
  • in AdGuard for iOS: ProtectionDNS ProtectionDNS requests filteringDNS filtersAdd filter
  • in AdGuard for Android: SettingsDNS FilteringDNS requests blocking+ New DNS Filter

A rich collection of filters is available at filterlists.com. You can search it by name, description, language, and tags.

How to add your own rules

Along with DNS filters, you can use your own rules to fine-tune your DNS filtering. All AdGuard apps have a special section for custom rules. Depending on the product, it is usually located in the DNS Filtering or DNS Protection tab.

The AdGuard apps for Apple devices have Blocklist and Allowlist sections. You can add to these sections the domains that should be blocked or excluded from filtering. The Blocklist also supports a more complex DNS filtering rule syntax.

There are two ways to add your own rules:

  • Manually. Be sure to review the rule syntax.
  • Import them to your device. For example, you may want to block the same ads on all your devices that use AdGuard. Or if someone has shared their filtering list with you.
Liked this post?
By downloading the comments you agree the terms and policies

AdGuard for Windows

AdGuard for Windows is more than an ad blocker. It is a multipurpose tool that blocks ads, controls access to dangerous sites, speeds up page loading, and protects children from inappropriate content.
User Reviews: 11993
4.7 out of 5
By downloading the program you accept the terms of the License agreement
Read more

AdGuard for Mac

AdGuard for Mac is a unique ad blocker designed with macOS in mind. In addition to protecting you from annoying ads in browsers and apps, it shields you from tracking, phishing, and fraud.
User Reviews: 11993
4.7 out of 5
By downloading the program you accept the terms of the License agreement
Read more

AdGuard for Android

AdGuard for Android is a perfect solution for Android devices. Unlike most other ad blockers, AdGuard doesn't require root access and provides a wide range of app management options.
User Reviews: 11993
4.7 out of 5
By downloading the program you accept the terms of the License agreement

AdGuard for iOS

The most advanced ad blocker for Safari: it makes you forget about pop-up ads, speeds up page loading, and protects your personal data. A manual element-blocking tool and highly customizable settings help you tailor the filtering to your exact needs.
User Reviews: 11993
4.7 out of 5
By downloading the program you accept the terms of the License agreement

AdGuard Browser Extension

AdGuard is the fastest and most lightweight ad blocking extension that effectively blocks all types of ads on all web pages! Choose AdGuard for the browser you use and get ad-free, fast and safe browsing.
User Reviews: 11993
4.7 out of 5

AdGuard for Safari

Ad blocking extensions for Safari are having hard time since Apple started to force everyone to use the new SDK. AdGuard extension is supposed to bring back the high quality ad blocking back to Safari.
User Reviews: 11993
4.7 out of 5
Available on the
App Store
Download
By downloading the program you accept the terms of the License agreement

AdGuard Home

AdGuard Home is a network-wide software for blocking ads & tracking. After you set it up, it’ll cover ALL your home devices, and you don’t need any client-side software for that. With the rise of Internet-Of-Things and connected devices, it becomes more and more important to be able to control your whole network.
User Reviews: 11993
4.7 out of 5

AdGuard Content Blocker

AdGuard Content Blocker will eliminate all kinds of ads in mobile browsers that support content blocker technology — namely, Samsung Internet and Yandex.Browser. While being more limited than AdGuard for Android, it is free, easy to install and still provides high ad blocking quality.
User Reviews: 11993
4.7 out of 5
By downloading the program you accept the terms of the License agreement
Read more

AdGuard Assistant

A companion browser extension for AdGuard desktop apps. It offers an in-browser access to such features as custom element blocking, allowlisting a website or sending a report.
User Reviews: 11993
4.7 out of 5
Assistant for Chrome Is it your current browser?
Install
By downloading the program you accept the terms of the License agreement
Assistant for Firefox Is it your current browser?
Install
By downloading the program you accept the terms of the License agreement
Assistant for Edge Is it your current browser?
Install
By downloading the program you accept the terms of the License agreement
Assistant for Opera Is it your current browser?
Install
By downloading the program you accept the terms of the License agreement
Assistant for Yandex Is it your current browser?
Install
By downloading the program you accept the terms of the License agreement
Assistant for Safari Is it your current browser?
If you can't find your browser, try the old legacy Assistant version, which you can find in AdGuard extension settings.
Downloading AdGuard To install AdGuard, click the file indicated by the arrow Select "Open" and click "OK", then wait for the file to be downloaded. In the opened window, drag the AdGuard icon to the "Applications" folder. Thank you for choosing AdGuard! Select "Open" and click "OK", then wait for the file to be downloaded. In the opened window, click "Install". Thank you for choosing AdGuard!
Install AdGuard on your mobile device