Web sites that 'lock you in' - why NASA?
- JohnD
- Tea Time, Guv! Cheerio!
- Posts: 1593
- Joined: Wed Feb 16, 2005 2:11 pm
- Location: Lancaster, England
Web sites that 'lock you in' - why NASA?
All,
I've always despised those websites that 'lock you in', that prevent you using the 'back' button to return whence you came. They are usually commercial sites, that I presume do this in the vain hope that this will induce you to buy something. Vain indeed!
Today's APOD of the new Truss on the ISS includes a hyperlink to a NASA page about the ISS and the truss structure. Once there, you are locked in. See: http://www.nasa.gov/mission_pages/stati ... s/its.html
It's easy enough to get out, or to just close that window, but why do they do this? It's not as if NASA has anything to sell.
John
I've always despised those websites that 'lock you in', that prevent you using the 'back' button to return whence you came. They are usually commercial sites, that I presume do this in the vain hope that this will induce you to buy something. Vain indeed!
Today's APOD of the new Truss on the ISS includes a hyperlink to a NASA page about the ISS and the truss structure. Once there, you are locked in. See: http://www.nasa.gov/mission_pages/stati ... s/its.html
It's easy enough to get out, or to just close that window, but why do they do this? It's not as if NASA has anything to sell.
John
-
- Commander
- Posts: 807
- Joined: Thu Jul 21, 2005 2:57 pm
- Location: On a boat near Tacoma, WA, usa
- Contact:
- orin stepanek
- Plutopian
- Posts: 8200
- Joined: Wed Jul 27, 2005 3:41 pm
- Location: Nebraska
- JohnD
- Tea Time, Guv! Cheerio!
- Posts: 1593
- Joined: Wed Feb 16, 2005 2:11 pm
- Location: Lancaster, England
Thanks, Orin.
And; right click and select 'Google search' to force the window to go to Google.
BMA,
What do you mean? When going to that page from APOD, it goes through a page whose URL starts "www.spaceflight......" and then loads the Truss page. Too quickly for me to read. The back key takes you the first 'spaceflight' page, which then reloads the Truss page automatically. That's locked-in in my country.
But this is all 'How?'
I want to know 'Why?'
John
And; right click and select 'Google search' to force the window to go to Google.
BMA,
What do you mean? When going to that page from APOD, it goes through a page whose URL starts "www.spaceflight......" and then loads the Truss page. Too quickly for me to read. The back key takes you the first 'spaceflight' page, which then reloads the Truss page automatically. That's locked-in in my country.
But this is all 'How?'
I want to know 'Why?'
John
- iamlucky13
- Commander
- Posts: 515
- Joined: Thu May 25, 2006 7:28 pm
- Location: Seattle, WA
I do some web development, and I see this a lot. For whatever reason (and there are many legitimate possibilities, from restructuring the website to monitoring traffic), they are using a meta redirect:
It's actually a rather poor method in most cases and generally shouldn't be used. A server-side redirect is really the best way because it doesn't "break the back button" as we say and search engines will update their results.
Essentially, APOD copied a link to a page on the NASA spaceflight site. The link pointed to another NASA spaceflight page, but that page isn't actually where the info is. Probably it was there and was later moved to the NASA main site. To keep viewers who followed a link or bookmarked the page from getting a "404: Page not found" error, they inserted the meta tag that tells the browser to load the page on the NASA main site.
So your browser has actually visited three pages (apod, spaceflight.nasa.gov, and nasa.gov). When you click the back button, it goes back the spaceflight page that still has the meta tag, which causes the browser to once again jump forward. Had they used a server side redirect ("301: permanent redirect" is the best option) your browser would only remember the two pages that actually have information. Unfortunately that requires changing some things on the server instead of adding that one line of code to the intermediate webpage, so they probably did it to keep things quick and organized.
You can doubleclick the back button and it will jump back two pages before the middle page finishes loading. Meta tags aren't recognized until the page loads.
It's partially the APOD author's fault for copying the link (which points to spaceflight.nasa.gov) instead of loading the actual page and copying the address from there (http://www.nasa.gov).
Code: Select all
<META CONTENT="0;URL=http://www.nasa.gov/mission_pages/station/structure/elements/its.html" HTTP-EQUIV="REFRESH">
Essentially, APOD copied a link to a page on the NASA spaceflight site. The link pointed to another NASA spaceflight page, but that page isn't actually where the info is. Probably it was there and was later moved to the NASA main site. To keep viewers who followed a link or bookmarked the page from getting a "404: Page not found" error, they inserted the meta tag that tells the browser to load the page on the NASA main site.
So your browser has actually visited three pages (apod, spaceflight.nasa.gov, and nasa.gov). When you click the back button, it goes back the spaceflight page that still has the meta tag, which causes the browser to once again jump forward. Had they used a server side redirect ("301: permanent redirect" is the best option) your browser would only remember the two pages that actually have information. Unfortunately that requires changing some things on the server instead of adding that one line of code to the intermediate webpage, so they probably did it to keep things quick and organized.
You can doubleclick the back button and it will jump back two pages before the middle page finishes loading. Meta tags aren't recognized until the page loads.
It's partially the APOD author's fault for copying the link (which points to spaceflight.nasa.gov) instead of loading the actual page and copying the address from there (http://www.nasa.gov).
"Any man whose errors take ten years to correct is quite a man." ~J. Robert Oppenheimer (speaking about Albert Einstein)