Skip to content
Free marketing audit: find out what is holding your site back.

Technical SEO

Google Adds a Back Button Hijacking FAQ: Ad Code Is Not a Defense, and Visitors From Social Media Count

Google added five questions and answers on back button hijacking to its spam policies on November 23, 2026. The policy has been enforced since June 15. Here is what the FAQ settles, and a short script we ran to test whether one press of Back takes a visitor home.

A hand on a computer mouse beside an open laptop on a cluttered desk

Key takeaways

  • On November 23, 2026, Google added a five-question back button hijacking FAQ to its Search spam policies; the policy itself has been enforced since June 15, 2026, with manual actions or automated demotions.
  • Google says sites may keep loading code from advertising platforms, but it acts on any page that shows back button hijacking, whoever wrote the script.
  • The policy applies whenever the hijack happens in a browser, even if the visitor came from social media rather than Google Search, and it covers Google Discover.
  • "Open in app" behavior, where a site hands the visitor to an app, is outside the policy, according to the FAQ.
  • Our 52-line Playwright script caught all three hijacking test pages we built and passed both live pages of this site, whose Next.js router calls replaceState and listens for popstate without trapping anyone.

Google added a back button hijacking FAQ to its Search spam policies on November 23, 2026, and it closes the two easiest excuses: "the ad network did it" and "those visitors didn't come from Google." Back button hijacking has counted as a malicious practice since Google announced the policy on April 13, and enforcement began June 15. Pages that do it can get a manual spam action or an automated demotion. If your site runs ad, recommendation or "exit offer" scripts, test it now. Below is the script we used.

The new questions sit under "Malicious practices" on Google's spam policies page, which shows "Last updated 2026-11-23 UTC." Search Engine Roundtable spotted them first. The policy applies to Google Search in every country and language; Google's pages give no regional limits.

What is back button hijacking?

Google defines it as a site that "interferes with user browser navigation by manipulating the browser history or other functionalities," so visitors can't use Back to return straight to the page they came from. In practice a script adds a fake entry to the browser's history, then catches the Back press and sends the visitor to a page they never asked for: a "recommended for you" page, an offer, or a wall of ads.

What does Google's new FAQ say?

Five answers, in Google's words where it matters:

  • Ad code is not a defense. Google says some hijacking "was caused by third-party advertising platforms." Sites can keep importing code those platforms host, but "We only take action on pages that exhibit back button hijacking behavior." If the ad tag on your page does it, your page is the one acted on.
  • Anyone can report it. Users can send a page through Google's spam report form.
  • Discover is included. Google calls Discover "a part of Google Search," so the spam policies apply there too.
  • The traffic source doesn't matter. A visitor who arrives from social media and gets trapped still counts: "If back button hijacking happens when a user is browsing within a browser, then the policy applies."
  • Opening an app is out of scope. When a site opens an external app and the visitor can't get back, Google says app navigation and "open in app" behaviors fall outside this policy.

The FAQ adds no new penalty and no new dates. What it does is remove the gray areas site owners were leaning on.

How to tell if a site hijacks the back button

Searching your code for pushState won't tell you much. Almost every modern framework calls the browser's history functions on its own. The test that matters is the one Google describes: arrive from somewhere else, press Back once, and see where you end up.

We wrote that test as a small script for Playwright, the free browser automation library. It:

  1. opens a neutral page that stands in for the results page,
  2. loads your URL with Google as the referrer, because some scripts only fire for search visitors,
  3. waits, scrolls and clicks once like a reader would, because many hijacks wait for the first interaction,
  4. logs every history call the page makes and any listener for the Back event (popstate),
  5. presses Back once and reports PASS if the browser lands on the previous site.
// check-back-button.mjs: does the back button take a visitor straight back?
// Usage: node check-back-button.mjs https://example.com/page [more URLs]
import { chromium } from 'playwright';
 
const REFERRER = 'https://example.com/'; // stands in for the search results page
 
async function check(url) {
  const browser = await chromium.launch();
  const page = await browser.newPage();
  // Log every history change the page makes, and who listens for "back".
  await page.addInitScript(() => {
    window.__calls = [];
    for (const fn of ['pushState', 'replaceState']) {
      const orig = history[fn];
      history[fn] = function (...args) {
        window.__calls.push(`${fn} ${args[2] ?? '(same URL)'}`);
        return orig.apply(this, args);
      };
    }
    const add = EventTarget.prototype.addEventListener;
    EventTarget.prototype.addEventListener = function (type, ...rest) {
      if (type === 'popstate' || type === 'beforeunload') window.__calls.push(`listens for ${type}`);
      return add.call(this, type, ...rest);
    };
  });
 
  await page.goto(REFERRER);
  // Arrive as a Google visitor: some scripts only fire for search traffic.
  await page.goto(url, { waitUntil: 'load', referer: 'https://www.google.com/' });
  await page.waitForTimeout(3000);
  // Act like a reader: scroll and click somewhere harmless. Many hijacks wait for this.
  await page.mouse.wheel(0, 800);
  await page.mouse.click(5, 5);
  await page.waitForTimeout(2000);
  const calls = await page.evaluate(() => window.__calls);
  const landed = page.url();
 
  await page.goBack({ waitUntil: 'load' }).catch(() => {});
  await page.waitForTimeout(1500);
  const afterBack = page.url();
  const ok = afterBack === REFERRER;
  console.log(`\n${url}`);
  console.log(`  history calls: ${calls.length ? calls.join('; ') : 'none'}`);
  console.log(`  one press of Back: ${ok ? 'PASS, returned to the previous site' : `FAIL, stayed on or went to ${afterBack}`}`);
  if (!ok && afterBack === landed) console.log('  (the page added an entry, so Back stayed on the same URL)');
  await browser.close();
  return ok;
}
 
let failed = 0;
for (const url of process.argv.slice(2)) if (!(await check(url))) failed++;
process.exit(failed ? 1 : 0);

Save it as check-back-button.mjs, run npm install playwright and npx playwright install chromium once, then node check-back-button.mjs https://yoursite.com/some-article/. It exits with code 1 if any page fails, so it can run in a build or a nightly job.

What our test found

We ran it on November 23 against two live pages of this site and five small test pages we built on a local server:

PageWhat it doesOne press of Back
thesearchpost.com home pageNext.js router: replaceState on load, listens for popstatePASS
A thesearchpost.com storySame router callsPASS
Plain articleNo history callsPASS
App page with a tabpushState only when a reader clicks the tabPASS
Hijack on loadAdds a fake entry as the page loads, redirects on BackFAIL, landed on the "offer" page
Hijack on first clickAdds the entry only after the reader's first click or key pressFAIL, landed on the "offer" page
Hijack for search visitors onlyAdds the entry only when the referrer is GoogleFAIL, landed on the "offer" page

Two things stood out. First, our own site calls replaceState and listens for popstate on every page, because that is how the Next.js router works, and it passes. A history call is not hijacking; an extra entry that keeps visitors from leaving is. Second, the search-only trap would have passed if we had loaded it without a Google referrer, and the click-triggered one hides until someone interacts. A quick manual check that skips either step can miss a real problem.

Limits: this is a headless browser on a server, so consent banners, geotargeted ads and ad auctions can behave differently than they do for a real visitor in your market. Run it a few times, on your highest-traffic templates, and from a phone as well by hand.

What should site owners do this week?

  • Test every template that carries ads or recommendation widgets, not only the home page. Articles and gallery pages are where these scripts usually run.
  • If a page fails, turn off scripts one at a time (ad tags, "exit intent" popups, content recommendation widgets, push notification prompts) until it passes. Google's April post says to review "libraries, imports, configurations, and advertising platforms."
  • Ask your ad partners in writing whether any of their formats change browser history. After today's FAQ, their code is your responsibility in Google's eyes.
  • Check Search Console's Manual actions report. If a manual action is there, fix the cause and file a reconsideration request; Google's April post says that is the route back.

What we don't know yet

Google hasn't said why it published the FAQ now, how many sites have received manual actions since June 15, or how its automated systems detect the behavior. The FAQ also doesn't say whether a page that hijacks only some visitors, such as one ad in a rotation, is treated the same as one that always does. Until Google says otherwise, assume any page that fails the test is at risk.

Sources

Photo of Kiran Dasgupta

About the author

Kiran Dasgupta, Editor

Kiran runs Kihan Marketing, a web design, SEO and ads agency, and manages dozens of websites across real estate, home services and healthcare. He writes about SEO, AI search and paid ads news, and what it means for the people who run websites.