SEO Guide

How to Audit Back Button Hijacking

Exit scripts and ad tags that block the Back button can violate Google's spam policies. Based on the official FAQ added on November 23, this guide covers what is and isn't in scope, and how to test Back and isolate the cause.

8 min read2026-11-27

Back button hijacking means manipulating browser history or other navigation features so visitors cannot immediately return to the page they came from. Google made it an explicit spam policy violation in April 2026 and began enforcing the policy on June 15. Its November 23 FAQ clarified that enforcement applies to the page showing the behavior even if an ad tag causes it, and that the policy covers hijacking in the browser after visits from Discover or social media. To audit it, follow an external link and press Back under consistent conditions, then isolate and disable the script responsible.

When handing over or maintaining a page with ad tags or exit scripts, test it as someone arriving from another site would. Check where Back leads before and after interacting with the page, then repeat the tests under the same conditions after the fix.

What Is Back Button Hijacking?

A page can change browser history through the History API using pushState or replaceState. It can also respond to a popstate event during Back navigation by sending the visitor to another screen.

  • Opening a page adds repeated entries for the same URL or dummy history entries before any interaction.
  • Pressing Back sends the visitor to a page they never visited or to unsolicited recommendations or ads.
  • Pressing Back takes the visitor to an exit screen.
BehaviorWhat changesWhat Back does
Normal SPA navigationA view change initiated by the visitor creates a history entry.Returns to the previous view or page.
Example of hijackingThe site inserts a page the visitor never visited into the history.The visitor cannot immediately return to the page they came from.

What Google’s Spam Policy Says

On April 13, 2026, Google announced that back button hijacking would become an explicit violation under malicious practices. Inserting deceptive pages into browser history already violated Google Search Essentials.

Enforcement began on June 15, 2026. Pages that violate the policy may face a manual spam action or an automated ranking demotion, which can affect their visibility in Search. The FAQ added on November 23 clarified the following points.

FAQ questionSummary of Google’s answer
Is ad platform code banned?Sites can continue using it. Enforcement applies to pages that exhibit back button hijacking.
Can users report it?Users can submit a spam report.
Does it apply to Google Discover?Discover is part of Google Search and is covered by its spam policies.
Does it apply to visits from outside Search, such as social media?The policy applies when hijacking happens while the visitor is browsing.
What if visitors cannot go back after a site opens an external app?In-app navigation and “open in app” behavior fall outside this policy.

How to Check Your Site

  1. Follow a link from an external page to the page under test in the same tab. Note the source URL so you can compare it with where Back takes you.
  2. Press the browser Back button before interacting with the page. Check whether you return immediately to the source, stay on the page, or see another screen.
  3. Enter again from the same external page, interact with the page, then press Back. If the interaction changed views, check that Back returns to the previous view as expected.
  4. Record the interaction and where Back led. Follow the same steps when checking other browsers or devices.

Use this template to record your checks. Under “Where Back led,” enter the URL or screen you actually saw.

InteractionBrowserDeviceSource URLWhere Back led
Before interactionFill inFill inFill inFill in
After interaction (note what you did)Fill inFill inFill inFill in

How to Isolate the Cause

Search Sources in DevTools for pushState, replaceState, and popstate. Use Performance to trace scripts that call pushState. Review your own exit scripts, tags delivered through the tag manager, then ads and external libraries to see where history or the Back destination changes.

You can inspect history.length in the Console. Use the entry count as a clue and base your decision on where Back actually takes you. Disable suspected tags one at a time in the tag manager and repeat the same test under the same conditions. If the behavior stops, review the code that tag loads and its settings.

How to Fix It and Verify the Fix

Remove the script or import responsible, or disable the setting that causes the hijacking. Retest in the same tab using the browser, device, source URL, and interaction that produced the issue.

  • Pass. Back takes you straight to the source page after you arrive. After a normal view change, Back returns you to the view you just saw.
  • Fail. Extra history entries keep you on the page, or pressing Back sends you to an ad or exit screen.

If you received a manual action, you can request reconsideration in Search Console after fixing the issue. For the steps, see the SEO penalty guide.

What Falls Outside Back Button Hijacking

  • Normal view changes in a SPA. An interaction opens a different view, and Back returns to the view you just saw.
  • A beforeunload prompt about unsaved input. Visitors can choose to leave in the browser prompt and return to the previous page. Under the policy definition, this behavior leaves that return path available.
  • Navigation after opening an external app. Google’s fifth FAQ places in-app navigation and “open in app” behavior outside the policy.

Related Tools

Sources (checked November 27, 2026)

FAQ

Why can blocking the browser Back button count as spam?▾
Under Google's spam policy, manipulating browser history or other navigation features so that Back cannot immediately return visitors to the page they came from is back button hijacking.
Does changing browser history with JavaScript always violate the policy?▾
When visitors switch views in a SPA, Back normally returns them to the previous view. When visitors have just arrived from an external page, check whether Back takes them straight to that page.
Can a page face enforcement if an ad tag causes the behavior?▾
Yes. Sites can still use ad platform code. Enforcement applies to pages that exhibit back button hijacking.
Does the policy apply to visits from social media or Discover?▾
The policy applies to Google Discover. It also covers visits from outside Search, including social media, when the hijacking happens while the visitor is browsing.
Can the SEO Checker detect back button hijacking?▾
Direbase's SEO Checker and AIO Readiness Checker do not check for it. Test by following a link from an external page in the same tab and pressing Back.
What should I do after fixing a manual action?▾
Remove or disable the cause and retest the Back button under the same conditions. Once the issue is fixed, you can request reconsideration in Search Console.

Review Your Site’s Overall SEO

Use the steps in this guide to test for back button hijacking by hand. Use the SEO Checker to review your site’s overall SEO.

Run the SEO Checker
今井政和

Written by

Masakazu Imai. An executive director with over 20 years of experience in sales and business operations. Handles sales, marketing and implementation single-handedly, and develops and runs Direbase.

View profile (in Japanese) →

Related Articles

SEO Lab9 min

When Impressions Halve After a Core Update | Sort the Drop Before You Fix It

Google's November 2026 core update has finished. On another site we run, article impressions fell 59% while tool pages rose 9%. Average position slipped only two to three places — most of the loss came from queries where the pages stopped appearing at all. How to sort a drop into three types before fixing, and when to fix with the December core update already announced.

Read more
SEO Lab9 min

When to Judge a Core Update's Impact | Rollout-Week Drops Are Made by Weekdays and Time Zones

Google's November 2026 core update has started. In the last two updates, the first three days looked 35% down from the previous three — but against the same weekdays it was −6% and +59%, and by Google's recommended comparison clicks didn't fall either time. How Search Console's Pacific-time dates and your site's normal swings should shape when you judge.

Read more
SEO Lab10 min

What to Check for AI Overview Optimization | AIO Citation Conditions & SEO Audit Items

AIO citation conditions and audit items verified through 300K-URL analyses and external data. Structured data 3x implementation rate, E-E-A-T, and content clarity are top citation predictors. SEO check items for the AIO era.

Read more
Technical SEO10 min

What Is an SEO Penalty? How to Check Manual Actions, Recover & Prevent

An SEO penalty is a drop in search visibility caused by guideline violations. Learn the difference between manual actions and algorithmic drops, how to check in Google Search Console, common causes, the reconsideration-request recovery process, and prevention.

Read more