Ad Blockers: The Access They Need and the Ceiling They Hit
Privacy
An ad blocker is an extension, and an extension cannot act on a page it has not been given access to. In Chrome the access now takes a specific form, where the extension supplies a list of rules and the browser applies them. What a blocker can and cannot do for you follows almost entirely from that arrangement.
A rule names a request and the browser does the blocking
Google documents the mechanism for extension developers rather than for the people who install what they build, which is why the plainest description of an ad blocker sits in an API reference. The interface is called declarative net request, and its summary names the point of the design in one clause: it “lets extensions modify network requests without intercepting them and viewing their content, thus providing more privacy”.
The design splits the job in two. An extension states what it wants stopped, and the stopping is done by the browser. Nothing in that path requires the extension to watch your traffic go past, which cuts against what the word blocker tends to suggest.
A single rule can do one of five things, and the documentation lists them without embellishment: “Block a network request”, “Redirect a network request”, upgrade one from http to https, “Modify request or response headers”, or “Prevent a request from getting blocked by negating any matching blocked rules”, which is how an exception for a site you have allowed is expressed.
Those rules arrive in three kinds of set, and the difference decides when a change reaches you. Static sets are “packaged, installed, and updated when an extension is installed or upgraded”. Dynamic rules “persist across browser sessions and extension upgrades” and are what an extension adds while running, which is what happens when you click to allow a site. Session rules are “cleared when the browser shuts down”.
The unit of action in all three is a request. What a blocker removes is a fetch, and anything that was never fetched is outside its reach.
What you hand over, and what each browser asks for
Access is the other half of the arrangement, and Chrome offers two versions of it. The first “Triggers a permission warning at install time” and in exchange grants implicit access to the allow and block rules, and the documentation says to choose it where you can: “Use this when possible to avoid needing to request full access to hosts.” The second works the other way round, where “A permission warning is not shown at install time, but you must request host permissions before you can perform any action on a host.”
Two prices for the same capability. One is paid once, visibly, in a warning you see before you install. The other is deferred and paid per host, and a blocker that wants to work everywhere has to ask for everywhere.
Mozilla documents a different bargain for a different interface. Its reference says the listener “receives detailed information about the request and can modify or cancel the request”, and an extension that wants that power has to hold a blocking permission on top of the ordinary one. The same page describes a facility for response bodies, returning an object an extension can use to “examine and modify the data as it is received by the browser”.
The difference between the two is what the extension is trusted with. In the Firefox arrangement the blocking runs through code that sees the traffic. In the Chrome one it runs on rules the browser evaluates, and the extension’s view of your traffic becomes a separate question answered by whatever other permissions it asked for. Neither arrangement is a guarantee about any particular product. Both tell you which question to ask about one.
The ceiling on the rules is published
Filter lists are long, and there is a documented limit on how long. An extension may ship up to 100 of the packaged sets and enable 50 at once, and collectively they are “guaranteed at least 30,000 rules”.
A further sentence changes how that number should be read. “The number of rules available after that depends on how many rules are enabled by all the extensions installed on a user’s browser.” Past the guaranteed floor, the allowance is shared. Install a second blocker, a cookie-notice remover and a script blocker, and the three of them draw from one pot.
The other caps are just as explicit. An extension can hold up to 5,000 session rules, and at least 5,000 dynamic ones, with a larger allowance of 30,000 where the rules are of the safer kinds. Rules written as regular expressions are capped separately, since “the total number of regular expression rules of each type cannot exceed 1000”, and “each rule must be less than 2KB once compiled”, a size the documentation says “roughly correlates with the complexity of the rule”.
None of that is a complaint about the design. A blocker works inside an allowance, and that allowance is shared with everything else you have installed.
By the time the response arrives, what went out has gone
Rules are evaluated at three moments, and which moment a rule belongs to decides what it can do. Before a request is made, a matching rule can block it or redirect it. Before headers are sent, matching rules change them. Then there is a third stage, once the response headers have come back, where a rule can be made conditional on what the server sent back.
The third stage comes with a caveat. The documentation notes that a request reaching it “has already been sent to the server and the server has received data like the request body”. A rule there can still cause the page to receive a blocked response, and Chrome will end the request early, but the sending already happened.
Timing therefore decides the strength of a rule. A rule matched on a URL stops the connection before it opens. A rule that needs to see the reply first cannot unsend the question that produced it, and the documentation tells developers to consider whether that behaviour fits the privacy expectations they are setting.
Not all of it is blocking
Some of what a privacy extension does is not request blocking. Chrome exposes a separate interface for settings the browser already has, and an extension holding the right permission can read and change them.
One of those settings governs how much your browser volunteers when a page opens a direct connection. The documentation describes it as letting users specify a policy affecting “how WebRTC traffic will be routed and how much local address information is exposed”, and one of its values disables non-proxied UDP entirely. That one is observable, because the result shows up from this end: what a direct connection between two devices turns up about you can be read before and after, and our own page for it already advises running it again once an extension is installed.
The same interface admits that two extensions can fight. A setting can report itself as controlled by other extensions, in which case a change “will succeed, but the setting will be immediately overridden”, and the guidance to developers is that “it is advisable to warn the user when the settings they’ve chosen aren’t practically applied”. Blocking rules have their own version of this. The documentation says that where “more than one extension wants to block or redirect this request, a single action to take is chosen”, and that between two rules of the same type Chrome “chooses the rule from the most recently installed extension”.
Among rules of equal priority and action, the browser makers have agreed to leave the ordering unspecified, and the documentation warns that it “can change between runs or browser versions”. Two blockers are not twice one blocker.
Where blocking stops reaching
A request that never leaves cannot carry anything. The page you are actually reading is a different matter, because its own code runs regardless of what was blocked, and the values it reads about your browser are answers rather than fetches.
The limit of request blocking shows up here, and our own exposure readout concedes it from the other direction. Its advice on reducing what you give away separates blocking known trackers from restricting which readouts a site may take at all, and it asks you to run the check again after changing a privacy extension. Both of those are admissions that a rule list moves some rows and not others, which is the distinction to carry into a readout of what one visit gives away.
Request blocking acts on one kind of record and not on the rest, which is why some of what identifies you can be removed and the rest cannot. The reach on the fetch itself is real. A blocked request for an advert slot is a slot your browser never asked to have filled, and that is where a rule list does reach what the loading of that slot sets off elsewhere.
An ad blocker is a rule list the browser enforces on requests, bounded by a published allowance it shares with your other extensions, and strongest at the moment before a connection opens. The job is smaller than the name implies and worth doing anyway, and the rest of what you might hope it covers sits outside the request entirely.