One of the main functions of AdGuard is filtering ads on websites. In this article, we will describe in details how exactly AdGuard filters online advertising.
Adguard's work is based on the use of various advertising filters that define rules, based on which the program removes ads. AdGuard may use a variety of different ad filters. We create some of them ourselves (you can learn more about it on this page), some of the filters are created by enthusiasts.
Ad filtering mechanism depends on what product you use. Browser extensions rely on the capabilities that browsers provide them with. AdGuard for Windows, Mac and Android works independently of your browser, using a completely different filtering algorithm. Below we describe all the stages of ad filtering that AdGuard uses.
Before a page is loaded into browser, AdGuard processes its code removing elements according to the ad filtering rules. Thus browser does not recognize that there were actually those elements on this page and will not try to load them.
Page code filtering technology is used only in AdGuard for Windows, Mac or Android (if high quality filtering is enabled). That is because of the fact that capabilities of browser extensions are limited, and they can not change the page code before the browser processed it.
Browser loads all the necessary elements on a page, defined by the page code. Based on filtering rules, AdGuard can block the load of advertising elements, such as banners ads or Flash objects.
This is an approach for browser extensions only. It is necessary, because the first step of processing (page code filtering) is unavailable to them. During post-processing, the browser extension removes all the elements, loading of which was blocked, from a web page. If we didn't remove them, you would see not fully loaded elements, such as "broken" graphic.
All ad filters are created manually, based on complaints on ads from users. You can send us a complaint via the program itself or write about it on our Forum.