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?
9,934 9934 user reviews
Excellent!

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.
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

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.
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

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.
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

AdGuard for iOS

The best iOS ad blocker for iPhone and iPad. AdGuard eliminates all kinds of ads in Safari, protects your privacy, and speeds up page loading. AdGuard for iOS ad-blocking technology ensures the highest quality filtering and allows you to use multiple filters at the same time
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

AdGuard VPN

74 locations worldwide

Access to any content

Strong encryption

No-logging policy

Fastest connection

24/7 support

Try for free
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

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.
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

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.
9,934 9934 user reviews
Excellent!

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.
9,934 9934 user reviews
Excellent!

AdGuard DNS

AdGuard DNS is a foolproof way to block Internet ads that does not require installing any applications. It is easy to use, absolutely free, easily set up on any device, and provides you with minimal necessary functions to block ads, counters, malicious websites, and adult content.
9,934 9934 user reviews
Excellent!

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.
9,934 9934 user reviews
Excellent!

AdGuard Pro for iOS

AdGuard Pro has much to offer on top of the excellent iOS ad blocking in Safari already known to the users of the regular version. By providing access to custom DNS settings, the app allows you to block ads, protect your kids from adult content online, and safeguard your personal data from theft.
By downloading the program you accept the terms of the License agreement
Read more
9,934 9934 user reviews
Excellent!

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.
9,934 9934 user reviews
Excellent!

AdGuard Temp Mail

A free temporary email address generator that keeps you anonymous and protects your privacy. No spam in your main inbox!
9,934 9934 user reviews
Excellent!

AdGuard for Android TV

AdGuard for Android TV is the only app that blocks ads, guards your privacy, and acts as a firewall for your Smart TV. Get warnings about web threats, use secure DNS, and benefit from encrypted traffic. Relax and dive into your favorite shows with top-notch security and zero ads!
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