Skip to content

Malvertising: How Publishers Protect Readers and Ad Revenue

A reader opens your article on their phone and, a second later, lands on a page saying their iPhone is infected and they must call a support number. They did not click anything. They will not blame the ad network they have never heard of. They will blame your site, and some of them will install an ad blocker or never come back.

That is malvertising: malicious code or scams delivered through ads. It is not rare. Confiant, which scans ads for publishers, found that in 2025 one in every 133 ad impressions on premium sites was dangerous or highly disruptive to the user, the highest rate it has recorded. This guide explains how malvertising gets onto honest sites, what it costs publishers, and the practical steps to block it and report it.

Short version: Malicious ads usually come through programmatic demand, hidden behind clean-looking creatives that only turn bad for certain users. You cannot stop all of it, but you can cut it sharply: keep your SSP list short and trusted, use blocking controls in Google Ad Manager and Prebid, render ads in sandboxed frames, consider a scanning service, and report every bad ad with its creative ID. Act fast, because a site that keeps serving scam redirects can get a Google Safe Browsing warning for the whole domain.

How big is the problem?

Confiant MAQ Index 2026 page stating that one in every 133 impressions on premium inventory was dangerous or highly disruptive
Confiant's 2026 Malvertising and Ad Quality Index, covering 2025.
ReportFinding
Confiant MAQ Index 2026 (2025 data, over 1 trillion impressions)1 in 133 impressions on premium sites and apps was dangerous or highly disruptive; the worst platform's rate was 300 times the best one's
GeoEdge Q2 2025 Ad Quality ReportMalicious ad rates doubled in the top 5 markets; about 1 in 40 impressions in the UK and 1 in 35 in Canada were malicious; auto-redirects made up 66% of malicious activity
The Media Trust (March 2026)Malvertising incidents rose 42% in 2025, the biggest rise since 2019; 63% of brand-impersonation ads used AI-generated images or text
Google 2025 Ads Safety ReportOver 8.3 billion ads blocked or removed and 24.9 million advertiser accounts suspended in 2025
Each vendor measures differently and sees different traffic, so the rates are not directly comparable. The direction is the same in all of them.

The numbers vary a lot by country, device and SSP. The key point for a publisher is the last part of Confiant's finding: the platform you buy demand from makes a huge difference. Malvertising is not evenly spread; it flows through the weakest links.

What malicious ads actually do

Diagram of how a malicious ad reaches a reader: clean-looking creative passes review, fingerprinting decides who sees the attack, then a redirect to a scam page
Most malicious ads look clean to scanners and turn bad only for chosen users.
ThreatWhat the reader seesWhy it matters
Forced redirectsThe page jumps to another site without a click, often a fake prize, fake virus warning or app store pageThe most common threat; readers blame your site
Tech support scamsA full-screen warning that the device is infected, with a phone number to callTargets older and less technical readers
Fake software updatesA page saying the browser or a plugin must be updated, which installs malware (for example ClearFake and SocGholish campaigns)Can infect the reader's computer
Phishing and investment scamsFake banks, fake celebrity investment stories, crypto drainersSteals money and passwords
Exploit kitsNothing visible; a vulnerable device is attacked just by loading the adRare but serious. Confiant reported a 2026 campaign targeting iPhones through more than 480 ad domains
Heavy or broken creativesSlow pages, battery drain, crashesNot always malicious, but it hurts readers and speed

How it gets past the filters

  • Cloaking. The ad shows a clean creative to scanners, reviewers and most users, and the malicious version only to targeted devices, countries or times. One ad network reported that cloaking caused 67% of its advertiser suspensions in Q2 2026.
  • Fingerprinting. Code inside the ad checks the device, browser and location before deciding what to show. Security researchers and data centres see nothing.
  • Short-lived campaigns. Attackers rotate domains and buyer accounts. Confiant described a group that ran about 59 million malicious impressions in 2025, testing ad tags across several DSPs and moving on each time a platform shut them down.
  • Video and rich media. Video ads can run their own code. The ScamClub group injected JavaScript into video ads and once exploited a browser bug to redirect users even inside sandboxed frames.
  • Supply chain scripts. Not every attack comes through ads. In November 2026 malicious code in a popular website experimentation script reached visitors of 178 organisations for about 15 hours. Any third-party script on your page is a risk.

What it costs publishers

  • Readers and trust. Security is a top reason for ad blocking. In a 2024 survey for AdGuard, 42.6% of US ad blocker users said they use one to improve security.
  • Google Safe Browsing warnings. Google says social engineering content embedded in a page, including ads, is a violation for the host page. If it keeps happening, Chrome can show a full-page warning before your site loads, and search results can be labelled. Reviews take days, and traffic can stay down after the warning is lifted.
  • Lost ad revenue. Blocking a bad buyer is cheap; losing readers and search traffic is not. Readers who leave after a redirect never see the rest of your ads.
  • Time. Finding the cause of a redirect report can take hours if you do not have the tools to trace it.

How to protect your site, step by step

1. Keep your demand partners clean

  • Work with fewer, better SSPs. Every extra SSP is another door. Confiant found a 300-fold difference between the safest and least safe platforms. Our guide on how many SSPs to use explains how to trim the list without losing revenue.
  • Keep ads.txt and sellers.json tidy. Remove lines for partners you no longer use and reseller lines you cannot explain.
  • Ask partners about ad quality. Which scanning do they use, how fast do they remove bad creatives, and will they share creative and buyer IDs when you report a problem?

2. Use the blocking controls you already have

  • Google Ad Manager Protections: block advertisers, ad categories, advertiser URLs, buyers and ad technologies. Protections do not apply to Programmatic Direct deals and can be overridden in Private Auctions, so check those separately.
  • Ad review center: review Ad Exchange creatives, search by creative ID and use "block and report" for anything malicious. When blocking a domain, add both the www and non-www versions.
  • Manual creative review (beta): blocks unreviewed creatives in open and private auctions. Ask your Google account manager to enable it if malvertising keeps coming back.
  • Prebid: the bidResponseFilter module rejects bids from blocked categories, advertiser domains or creative attributes, and can reject bids with missing metadata. Many malicious bids arrive without an advertiser domain.

3. Contain ads in the page

  • Use sandboxed iframes or SafeFrame. An ad in a cross-origin, sandboxed frame cannot read or change your page. The sandbox keyword allow-top-navigation-by-user-activation lets ads open a new page only after a real click, which blocks most forced redirects. A 2021 Adalytics study found that 70.6% of top sites with Google Display ads used unsandboxed same-origin frames, so many sites skip this.
  • Let the browser help. Chrome blocks redirects from third-party iframes the user has not interacted with, and its Heavy Ad Intervention unloads ads that use more than 4 MB of data or too much CPU without user interaction.
  • Limit third-party scripts. Every tag on the page can be compromised. Remove the ones you do not need, and consider a Content Security Policy for the rest.

4. Consider a scanning service

Specialist vendors scan creatives in real time and block bad ones before they render. The best known are Confiant, GeoEdge and The Media Trust, and both Confiant and GeoEdge offer Prebid modules. None publish prices; they are usually priced by impressions and make most sense once you see repeated incidents or run large volumes of open auction demand. Two things to check: whether they also block redirects (not just scan), and what happens if their script loads late. GeoEdge's own Prebid documentation notes that a creative renders unmonitored if its script is not ready in time.

5. Watch your own site

  • Browse your site on a real phone, with no ad blocker, from the countries where most readers are. Malvertising often targets mobile and specific locations.
  • Add a simple "Report a bad ad" link or email, and ask readers for a screenshot and the time.
  • Check Google Search Console's Security issues report regularly.

How to report a malicious ad

When a reader reports a redirect or a scam ad, collect evidence quickly, because cloaked ads may never appear again on the same device:

  1. Take an unedited screenshot (PNG, not JPG) of the ad and the landing page, with the time and the page URL.
  2. Find the creative. On sites using Google Publisher Tag, open the Google Publisher Console to see the creative ID, line item and query ID of each ad. Do not reload the page to open it, or you lose the ad.
  3. Report it in Ad Manager with the screenshot and the click string or query ID, using Google's form for reporting ads, and block the creative or advertiser in the Ad review center.
  4. Tell the SSP that served it, with the same details. Good partners remove the buyer quickly and tell you which DSP it came from.
  5. If Google flagged your site, fix the source first, then request a review in Search Console's Security issues report.

Common mistakes

  • Adding every SSP that asks. Extra partners add a little revenue and a lot of risk.
  • Ignoring reader reports because you cannot reproduce them. Cloaking means you often cannot. Look for patterns: device, country, time of day, SSP.
  • Blocking whole ad networks in panic. Trace the creative first; removing a good partner because of one bad buyer can cost more than it saves.
  • Not checking reseller lines in ads.txt. Malicious buyers often come through long resale chains.
  • Forgetting ad block recovery is harder after readers have seen a scam on your site. Prevention is cheaper.

Frequently asked questions

What is malvertising?

Malvertising is malicious advertising: ads that redirect users to scams, try to install malware, phish for passwords or run harmful code. It usually reaches honest sites through programmatic ad demand.

How common is malvertising?

Confiant measured one dangerous or highly disruptive ad in every 133 impressions on premium sites in 2025. Rates vary widely by country, device and ad platform.

Why do ads redirect my site to another page?

A malicious ad is running code that forces a redirect. Use sandboxed iframes that only allow navigation after a click, block the creative in Google Ad Manager, and report it to the SSP that served it.

Can malvertising get my site blocked by Google?

Yes. Google treats social engineering content in ads as a violation for the host page, and repeated problems can lead to Safe Browsing warnings in Chrome and Search.

How do I find which ad caused a redirect?

Use the Google Publisher Console on sites with Google Publisher Tag to see the creative ID and query ID, take an unedited PNG screenshot, and send the details to Google and your SSP.

Do I need a paid ad security service?

Not always. Small sites can do a lot with fewer SSPs, Ad Manager and Prebid blocking, and sandboxed frames. A scanning service from vendors such as Confiant, GeoEdge or The Media Trust makes sense if incidents keep happening or you run a lot of open auction demand.

Sources

Updated December 3, 2026.

Alvils Karlštrems

About the author

Alvils Karlštrems

Alvils Karlštrems is the founder of bannerTag and COO at a header bidding and monetization company. He has worked in programmatic advertising and ad operations since 2017, with hands-on experience in Prebid, Google Ad Manager and publisher ad stacks. Have a question about your ad setup? Connect with Alvils on LinkedIn and send him a message.

View all posts