how do some websites prevent you from using the ‘back’ button to leave the page?

269 views

Often when I’m googling something I’ll go to a few pages, so I’ll click a link, and then use the back button to return to the search results and find another link. But sometimes the back button just reloads the page, and even tapping it multiple times doesn’t work. How and why do some websites do this? Surely it should be my browser that’s controlling if it goes back or not, rather than the website it’s on?

In: 197

11 Answers

Anonymous 0 Comments

The common way used by sketchy websites is by using a bunch of redirects.

The page sits at the end of a super long chain of web pages, all of which just push you one down the chain. The back button only takes you back one page, so even if you click it a few times you’ll still end up on the page you want to leave because you’re just backing out into the chain.

You are viewing 1 out of 11 answers, click here to view all answers.