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

283 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 link to their website is actually just a script that forwards you to the website. If you watch the URL you’ll see it change twice.

You click Back, but now your back on the script which then forwards you to the website.

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