Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Adblock Plus really work in Chrome?

I noticed Adblock Plus injecting some CSS that hides the advertisements, but I think that it does more than that - for example blocking HTTP requests.

How does Adblock Plus block advertisements on the web?

like image 289
Yosi Avatar asked Jan 03 '12 17:01

Yosi


People also ask

Does AdBlock Plus work on Chrome?

Adblock Plus is the most popular browser extension available for Mozilla Firefox, Google Chrome, Opera and Android.

How does AdBlock work on Chrome?

What is an adblocker? An adblocker for Chrome or Firefox is an extension (or add-on) to your browser, which adds functionality to your browser so it can filter content. Adblockers itself have no functionality, in the sense that they do not block anything until it is "told" what to do.

What is the weakness of AdBlock Plus?

The problem though is that AdBlock Plus requires publishers to pay an 'undisclosed amount' to have their ads whitelisted by the service. Some pundits, advertisers, and publishers argue that by removing the avenue by which publishers can make money and then requesting money to get it back amounts to extortion.

Which is better AdBlock or AdBlock Plus for Chrome?

In the reviews for both of these adblockers, Adblock Plus is more user-friendly than Adblock. This is because Adblock Plus can show you how many ads are blocked on the current webpage you're on while Adblock doesn't. Having said this, Adblock is not difficult to use in any way.


2 Answers

Adblock Plus has two mechanisms, to block content on websites:

Element hiding: A CSS snippet is injected in the website, to hide elements that are supposed to be blocked. That way the ads are completely removed from the rendered page, so that the areas otherwise used for ads will now be used for the actual content of the web page, and even content that is part of the web page itself (like text ads) can be blocked. However this doesn't prevent resources from loading in the first place.

Request blocking: HTTP requests for retrieving resources that are supposed to be blocked will be prevented from loading. This will make the page load faster, reduce traffic, and even enables blocking content that is loaded from within Flash, like the video ads on YouTube.

Both, the elements to hide on given websites, and the URLs to block, are controlled by filter lists. By default Adblock Plus will use EasyList. But you are free to setup your own filter rules or configure other filter lists.

like image 58
Sebastian Noack Avatar answered Sep 21 '22 03:09

Sebastian Noack


Here it is how it is done: https://adblockplus.org/en/faq_internal#elemhide

They just disable the block the adblock with the list of ids that they have in hand at user agent stylesheet i.e. at your browser level with its JS.

like image 43
sarathkm Avatar answered Sep 18 '22 03:09

sarathkm