YouTube's server-side ad insertion complicates ad blocking efforts

Person using a laptop.
Videoredigering- De bedste gratis programmer i 2022 (Image credit: Shutterstock)

YouTube has come up with a fresh tactic to hamstring ad blockers — incorporating ads directly into the video content itself through a method called "server-side ad insertion." This approach substantially complicates the task of ad blockers in detecting and blocking ads. However, while there is no ready solution to this problem, we are currently exploring ways to combat this new tactic, and remain optimistic about clearing this hurdle in the future.

How it started

For about a year now, YouTube has been ramping up its battle against ad blockers. Initially, it experimented with pop-up messages informing users that “ad blockers are not allowed on YouTube.” Subsequently, the Google-owned platform began testing a three-strikes policy, warning viewers that the video playback would be halted after three videos unless they disable their extensions. Some warnings even featured a countdown clock which could last up to 60 seconds, displaying to users how much time they had left to either "allow YouTube ads" or "try YouTube Premium,” before they are shown the message again.

Andrey Meshkov

Co-founder and CTO of Adguard.

How it is going: a new escalation

Throughout this period ad blockers have persisted and largely adapted to YouTube’s ad-blocker blocking ways. Ad blockers and YouTube have been locked in a perpetual game of tug of war, where neither side has achieved a definitive victory.

Now, YouTube seems to have upped the ante in the ongoing battle by unveiling what it hopes might be its trump card. As first reported by 9to5Google, YouTube was spotted using a method known as server-side ad injection. Already, we're seeing reactions from fellow ad-blocking extension developers.

For example, the developer of a crowdsourced ad-blocking extension SponsorBlock announced that the extension won’t work for users caught up in this experiment (as server-side ad injection seems to be a limited test for now) in the short term.

The AdGuard team has observed the new ad insertion method as well. So how does it work and how is it different from what YouTube did before?

Server-side ad insertion: not entirely new

Server-side ad insertion differs from normal YouTube ad insertion techniques primarily in how ads are delivered to viewers. In traditional methods, ads are served separately from the video content, allowing ad blockers to intercept and block them. However, with server-side ad injection, the ad becomes part of the video stream itself, making it indistinguishable from the content. This means that ad blockers are less effective because they can't differentiate between ads and the actual video.

However, although YouTube hadn't employed this method on the web previously, it has been using a strikingly similar tactic within its mobile apps. To delve into the technicalities, YouTube has been leveraging the UMP protocol to load video metadata, ad metadata, and the videos themselves in requests to *.googlevideo.com. This domain, managed by Google, serves as a platform for hosting and delivering various types of video content across Google's services, including YouTube.

The similarity between this protocol and YouTube’s new ad insertion tactics lies in its approach to data bundling and delivery. Just as server-side ad insertion integrates ads directly into the video content, UMP packages video and ad metadata, ads, and content itself in a streamlined format.

What does it mean for ad blockers?

In a nutshell, the new ad insertion tactics spell more trouble for ad blockers. It significantly hampers ad blockers’ capability to effectively filter out ads from the responses sent by YouTube to your device's requests for playing a video. Ad blocking extensions are particularly vulnerable to these tactics compared to desktop ad blocking applications, as they have fewer resources available to counter this method.

Currently, there is no foolproof remedy to this issue, but this is absolutely not to say it won’t emerge in the future. Filter developers are already working on short-term fixes and are actively looking for a more stable solution.

Link!

This article was produced as part of TechRadarPro's Expert Insights channel where we feature the best and brightest minds in the technology industry today. The views expressed here are those of the author and are not necessarily those of TechRadarPro or Future plc. If you are interested in contributing find out more here: https://www.techradar.com/news/submit-your-story-to-techradar-pro

Co-founder and CTO of Adguard.

Read more
female graphic designer pointing with finger on laptop computer during collaboration with male colleague on common project in coffee shop
How sites are falsely blaming ad blockers for site breakdowns
A padlock resting on a keyboard.
Understanding and avoiding malvertizing attacks
YouTube Premium promo image
I signed up for YouTube Premium, and it was the best tech decision I've made all year
Ad Blocker on Laptop
Best ad blockers of 2025
Woman using a Windows computer with Microsoft Edge
Don’t panic – Microsoft’s Edge browser isn’t about to subject you to a flood of unblocked adverts (not yet, anyway)
Assorted streaming apps are seen on an iPhone, including Netflix, Prime Video, Max, Disney+, Hulu, YouTube TV, Sling TV, Paramount+, Apple TV, Peacock, fuboTV, Philo, DirecTV, tubi, Pluto TV, and Plex
Why are streaming services getting better at detecting VPNs?
Latest in Pro
Code Skull
Interpol operation arrests 300 suspects linked to African cybercrime rings
Insecure network with several red platforms connected through glowing data lines and a black hat hacker symbol
Multiple H3C Magic routers hit by critical severity remote command injection, with no fix in sight
Code Skull
This dangerous new ransomware is hitting Windows, ARM, ESXi systems
ai quantization
Shadow AI: the hidden risk of operational chaos
An abstract image of a lock against a digital background, denoting cybersecurity.
Critical security flaw in Next.js could spell big trouble for JavaScript users
Bambu Lab H2D Vs X1C
I've been reviewing the hotly anticipated Bambu Lab H2D for a month, and it's the most versatile machine I've ever used
Latest in News
Zotac Gaming RTX 5090 Graphics Card
Nvidia Blackwell stock woes are compounded by price hikes as more RTX 5090 GPUs soar in pricing, and I’m sick and tired of it all at this point
An Apple Music pink/pixellated poster advertising DJ with Apple Music
DJ with Apple Music lands, allowing subscribers to build and mix DJ sets directly from its +100 million-song catalog
The Meta Quest 3 and controllers on their charging station which is itself on a wooden desk next to a lamp
Forget Android XR, I've got my eyes on Vivo's new Meta Quest 3 competitor as it could be the most important VR headset of 2025
Samsung Galaxy S25 from the front
The Now Bar on Samsung One UI 7 is about to get a lot more useful – and could soon match Live Activities on iOS
Marvel Rivals
Marvel Rivals will get two new hero skins for Moon Knight and Black Panther this week meaning I'll now need to farm even more Units
Nvidia app
Tired of manually optimizing your games? Nvidia's new G-Assist could save you time