A new spam policy for “back button hijacking”
by zdw on 4/14/2026, 3:06:27 AM
https://developers.google.com/search/blog/2026/04/back-button-hijacking
Comments
by: firefoxd
Ok, you can start with LinkedIn, I'll wait...<p>If you are wondering how it works. You get a link from LinkedIn, it's from an email or just a post someone shared. You click on it, the URL loads, and you read the post. When you click the back button, you aren't taken back to wherever you came from. Instead, your LinkedIn feed loads.<p>How did it happen? When you landed on the first link, the URL is replaced with the homepage first (location.replace(...) doesn't change the browser history). Then the browser history state is pushed to the original link. So it seems like you landed on the home page first then you clicked on a link. When you click the back button, you are taken back to the homepage where your feed entices you to stay longer on LinkedIn.
4/14/2026, 7:01:49 AM
by: bityard
As usual, it's a good first step but doesn't go far enough. I don't want my back-button hijacked by _anything_.<p>My issue with back-button hijacking isn't even spam/ads (I use an ad-blocker so I don't see those), but sites that do a "are you sure you want to leave? You haven't even subscribed to our newsletter yet?!"
4/14/2026, 12:06:29 PM
by: andreareina
> Notably, some instances of back button hijacking may originate from the site's ... advertising platform<p>I feel like anything loaded from a third party domain shouldn't be allowed to fiddle with the history stack.
4/14/2026, 5:18:41 AM
by: Havoc
Great. Can we do ctrl-f search hijacking next.<p>So jarring when websites replace core functionality with their own broken crap because they think they’re special.<p>Some also seem to hijack right click menu now
4/14/2026, 9:57:51 AM
by: blacksoil
Yes please! It's very annoying how clicking an FB or Insta result from a Google search result would disallow going back to the search result!
4/14/2026, 12:30:06 PM
by: musicale
The iron law of web encrapification: every web feature will (if possible) be employed to abuse the user, usually to push advertising.
4/14/2026, 3:48:35 AM
by: sidewndr46
too little, too late. The API for interacting with the back button in Javascript should never have existed in any capacity.
4/14/2026, 12:36:25 PM
by: cientifico
Click on any Youtube video from any web in android. If you press anything that is not the back button immediately, you will loose the option to go back.<p>So this coming from google... it's funny. Welcome, but funny.
4/14/2026, 12:29:28 PM
by: p4bl0
That's cool if they can make it work.<p>I don't understand how Google's indexing work anymore. I've had some website very well indexed for years and years which suddenly disappeared from the index with no explanation, even on the Search Console ("visited, not indexed"). Simple blog entries, lightweight pages, no JavaScript, no ads, no bad practices, https enabled, informative content that is linked from elsewhere including well indexed websites (some entries even performed well on Reddit). At the same time, for the past few years I've found Google search to be a less and less reliable tool because the results are less often what I need.<p>Anyway, let's hope this new policy can improve things a little.
4/14/2026, 5:49:25 AM
by: jbonatakis
> We believe that the user experience comes first<p>Bold coming from the company who gives me the most confusing “Open in app” prompts that are designed to confuse you and get you to use their app rather than the web<p><a href="https://mjtsai.com/blog/2024/03/29/those-obnoxious-sign-in-with-google-prompts/" rel="nofollow">https://mjtsai.com/blog/2024/03/29/those-obnoxious-sign-in-w...</a>
4/14/2026, 12:15:32 PM
by: al_borland
Some Microsoft sites have been very guilty of this. They are the ones that stick in my head in recent memory.
4/14/2026, 3:45:27 AM
by: SCdF
Ironically the only place I encounter this is using google news, where news sites seem to detect you're in google news (I don't think these same sites do it when I'm just browing normally?), and try to upsell you their other stories before you go back to the main page.
4/14/2026, 10:34:34 AM
by: XCSme
Thank you!<p>One of the worst is TikTok, even as a developer, when someone sends me a TikTok link and I have to visit it, I get stuck in the browser (same with the app but I uninstalled it), and it feels almost device-breaking the way they trap you in.
4/14/2026, 12:06:23 PM
by: bob1029
This seems like a good time to advertise the post/redirect/get pattern.<p><a href="https://en.wikipedia.org/wiki/Post/Redirect/Get" rel="nofollow">https://en.wikipedia.org/wiki/Post/Redirect/Get</a><p>Not strictly about hijacking back navigation but it can make experience less bumpy if you've got form submissions in the middle of the path.
4/14/2026, 5:56:34 AM
by: _ink_
A browser feature I wasn't aware of for too long: long press the back button, to get a list of recent URLs, allowing you to skip anything trying to hijack the back button.
4/14/2026, 6:49:32 AM
by: gadders
I hope this applies to Android as well. Reddit is a particularly egregious offender.
4/14/2026, 11:40:12 AM
by: slurpyb
Porno sites do this thing where every click is a new tab and when you refocus the previous tab, it reloads to an ad.<p>Or so I have been told.
4/14/2026, 6:04:57 AM
by: parasti
I understand this is vague on purpose but wish there was more detail. E.g., if I am running a game in a webgl canvas and "back button" has meaning within the game UI which I implement via history states, is my page now going to be demoted? This article doesn't answer that at all.
4/14/2026, 7:29:11 AM
by: CableNinja
Frustrating it took this long for something to be done about this, but glad its now got something being done.
4/14/2026, 3:13:16 AM
by: ffsm8
I would like to mention that Google own SPA framework, angular, has redirect routes which effectively do back button hijacking if used, because they add the url you're redirecting from to the history.<p><a href="https://angular.dev/guide/routing/redirecting-routes" rel="nofollow">https://angular.dev/guide/routing/redirecting-routes</a>
4/14/2026, 6:12:07 AM
by: mlmonkey
But the question is: why <i>are</i> sites allowed to hijack the Back Button?!?
4/14/2026, 4:39:05 AM
by: hysan
Took long enough. Maybe I missed it, but I didn’t see them say how invested they are in tackling this. Promoting a rule is one thing, but everything SEO related becomes a cat and mouse game. I don’t have high confidence that this will work.
4/14/2026, 5:24:07 AM
by: the_gipsy
> We believe that the user experience comes first.<p>Excuse me??
4/14/2026, 7:42:34 AM
by: kristopolous
Almost 30 years ago I wrote an article advocating for domain level back button with a quasi mode like ctrl to traverse domains.<p>Would have fixed this. Too late now
4/14/2026, 6:21:37 AM
by: neeeeeeal
Is there not a plugin that helps to fix this?
4/14/2026, 11:56:07 AM
by: oliwarner
Now do the Amazon app.<p>Number of times I've looked for something on my phone, gone through to a product page on Amazon but then have had to back out multiple times to get back to the search listing. Sometimes it's previously viewed products, sometimes it's "just" the Amazon home page. It <i>should be</i> one-and-done.<p>eBay too. I'm sure there are others.
4/14/2026, 5:55:41 AM
by: skrebbel
How does this work? How can a site inject a totally different site into the history? I thought eg the History API only lets you add to the stack and pop, not modify history?
4/14/2026, 11:42:40 AM
by: a13o
This would have been great back when I used a search engine to visit web pages.
4/14/2026, 11:17:14 AM
by: felixding
This is great. Can Google also stop scroll hijacking?
4/14/2026, 11:16:30 AM
by: seanalltogether
Does this also apply to sites like instagram that simply erase your entire back button history if you visit the site.
4/14/2026, 10:12:58 AM
by: Aardwolf
Why not fix this at the browser level? E.g. long or double click on back button = go to previous non-javascript-affected page (I mean by that: last page navigated to in the classical sense, ignoring dynamic histories altered by js and dynamic content)
4/14/2026, 8:25:55 AM
by: vsgherzi
Amazing change, fighting with the back button is my least favorite part of the ad web and a blindspot for ublock. I wonder how Google is going to track this and if SPA style react router sites would be downranked because of the custom back button behavior. I doubt it due to their popularity but I'm curious how they're going to determine what qualifies as spam
4/14/2026, 7:00:15 AM
by: Yizahi
I'm at a stage when I click back button extremely rarely and is amazed when it works as I expected.
4/14/2026, 10:01:31 AM
by: chakintosh
Google should probably talk to Microsoft about this because for me they are the biggest offenders with this back button hijacking in their support forums.
4/14/2026, 8:27:21 AM
by: eviks
> Why are we taking action? We believe that the user experience comes first.<p>What's the real reason?
4/14/2026, 9:42:03 AM
by: LLLDP
So someone developed a malicious plugin to achieve this? Otherwise, I can't imagine how they could bypass the browser to do this.
4/14/2026, 8:44:49 AM
by: mikkom
Maybe we can get facebook finally drop this dark pattern
4/14/2026, 7:50:32 AM
by: monegator
Phew. for a moment there i thought they would start blocking alternate uses of the back button in apps (for like when it means "go back" and when it means "close everything")<p>That would have severely rustled my jimmies
4/14/2026, 5:49:08 AM
by: psidium
Ironically, we have an infringing website right now on the front-page of HN (nypost).
4/14/2026, 5:26:33 AM
by: vladde
i wonder if this includes sites that do auto-redirect: A -> B (auto-redirect) -> C<p>if i'm on page C and go back, page B will take me to page C again. i think this is more about techincal incompetence rather than malicious intent, but still annoying.
4/14/2026, 8:46:56 AM
by: nottorp
So why don't google just disable the possibility of hijacking the back button in Chrome, to give an example?
4/14/2026, 8:00:08 AM
by: twism
Reddit! I'm looking at you?
4/14/2026, 4:27:49 AM
by: alpaca128
Great! So they'll fix the back button bugs on YouTube, and return me to the previous set of video recommendations when I use it on the homepage, right? Right? And let me return to the actual site when it detects that I lost the web connection for 0.01 seconds and hides all the content, and I then press the back button?
4/14/2026, 8:18:44 AM
by: bschwindHN
Cool, now maybe let's do something about all the shit I have to clear out out my face before I can read a simple web page. For example, on this very article I had to click "No thanks" for cookies and then "No thanks" for a survey or something. And then there was an ad at the top for some app that I also closed.<p>It's like walking into some room and having to swat away a bunch of cobwebs before doing whatever it is you want to do (read some text, basically).
4/14/2026, 4:02:28 AM
by: transcriptase
>We believe that the user experience comes first<p>I’ll believe that when YouTube gives me the ability to block certain channels versus “not interested” and “don’t recommend channel” buttons that do absolutely nothing close to what I want.<p>Or a thousand other things, but that one in particular has been top of mind recently.
4/14/2026, 5:03:54 AM
by: G_o_D
Instagram comments page requires 2 quick back press or else it won't take to previous page
4/14/2026, 6:17:42 AM
by: NooneAtAll3
is there a policy on "home button hijacking"?<p>I'm tired of apps that intercept home button to ask "are you sure?" - home button is home button, return me to the main phone screen<p>also, ads at the bottom of the screen, so that if you miss home button you open a website
4/14/2026, 5:57:25 AM
by: synack
Are they considering all uses of window.history.pushState to be hijacking? If so, why not remove that function from Chrome?
4/14/2026, 4:05:19 AM
by: incognito124
Now, if they only declared scroll hijacking as spam...
4/14/2026, 5:16:00 AM
by: kartik_malik
that's crazy things goin on
4/14/2026, 9:17:04 AM
by: Animats
Now to prevent scroll bar hijacking.
4/14/2026, 6:01:45 AM
by: globalnode
will google really punish sites for doing this? and if so how do i report a site? i guess i could email the site with the google link and suggest they fix it first
4/14/2026, 7:44:50 AM
by: imiric
> We believe that the user experience comes first.<p>If by "user" you mean advertisers, sure you do. Everyone else is an asset to extract as much value from as possible. You actively corrupt their experience.<p>The fact these companies control the web and its major platforms is one of the greatest tragedies of the modern era.
4/14/2026, 6:00:36 AM
by: sublinear
> Notably, some instances of back button hijacking may originate from the site's included libraries or advertising platform. We encourage site owners to <i>thoroughly review their technical implementation</i>...<p>Hah. In my time working with marketing teams this is highly unlikely to happen. They're allergic to code and they far outnumber everyone else in this space. Their best practices become the standard for everyone else that's uninitiated.<p>What they will probably do is change that vanity URL showing up on the SERP to point to a landing page that meets the requirements (only if the referer is google). This page will have the link the user wants. It will be dressed up to be as irresistible as possible. This will become the new best practice in the docs for all SEO-related tools. Hell, even google themselves might eventually put that in their docs.<p>In other words, the user must now click twice to find the page with the back button hijacking. Even sweeter is that the unfettered back button wouldn't have left their domain anyway.<p>This just sounds like another layer of yet more frustration. Contrary to popular belief, the user will put up with a lot of additional friction if they think they're going somewhere good. This is just an extra click. Most users probably won't even notice the change. If anything there will be propaganda aimed at aspiring web devs and power users telling them to get mad at google for "requiring" landing pages getting in the way of the content (like what happened to amp pages).
4/14/2026, 5:39:16 AM
by: kstenerud
Now if only they'd do this for Android apps that hijack the back button to pop up things, or say "are you sure you want to leave?"
4/14/2026, 5:50:18 AM
by: shevy-java
I don't trust Google.<p>We need to go back to an independent and competent research group designing standards. Right now Google pwns and controls the whole stack (well, not really ALL of it 1:1, but it has a huge influence on everything via the de-facto chrome monopoly).<p>Remember how Google took out ublock origin. They also lied about this aka "not safe standards" - in reality they don't WANT people to block ads.
4/14/2026, 10:19:53 AM
by: charcircuit
Google should actually fix this from the browser side instead of trying to seriously punish potentially buggy sites.
4/14/2026, 4:12:01 AM
by: cik
Great. Now do Android phones...
4/14/2026, 7:16:03 AM
by: tgsovlerkhgsel
Now do paywalls next.
4/14/2026, 4:05:20 AM
by: Arthur00
[dead]
4/14/2026, 12:12:22 PM
by: andrewmcwatters
[dead]
4/14/2026, 4:27:03 AM
by: dnnddidiej
Easy fix:<p>JS doesn't let you change back button behaviour.<p>Q. But what about SPA?<p>A. Draw your own app-level back button top left of page.<p>Another solution: make it a permisson.
4/14/2026, 5:29:19 AM