Hiding the url from history in chrome and android

Click For Summary

Discussion Overview

The discussion revolves around the possibility of coding a website in such a way that its URL does not appear in the user's browsing history, particularly comparing capabilities between iOS and other platforms like Android and desktop browsers. Participants explore technical methods, security implications, and the motivations behind wanting to hide URLs.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants inquire whether it is possible to code a website so that its URL does not stick in the user's history, noting that this feature is claimed to exist in iOS.
  • Others argue that browser settings are client-side and cannot be controlled by a website, raising concerns about security implications if such control were possible.
  • There is a suggestion that JavaScript might have effects on client-side behavior, but it is generally agreed that it cannot alter browser settings or access history.
  • One participant mentions a thread suggesting that it can be done via JavaScript, but expresses skepticism based on personal experience with current browser behavior.
  • Another participant references HTML5 and the History API, questioning whether any features are blocked for security reasons and expressing frustration with sites that disrupt the back button functionality.
  • Concerns are raised about the motivations behind wanting to manipulate browser history, with some participants questioning the ethical implications of such actions.
  • There is a mention of using jQuery to load content without affecting history, but this is contingent on the pages being on the same server.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether it is possible to hide URLs from history. There are competing views regarding the capabilities of JavaScript and HTML5, as well as differing opinions on the ethical considerations of manipulating browser history.

Contextual Notes

Participants express uncertainty about the current capabilities of browsers and the potential changes in behavior since older methods were discussed. There is also a lack of clarity on the security measures in place that may prevent such actions.

Who May Find This Useful

This discussion may be of interest to web developers, programmers exploring client-side scripting, and individuals curious about web security and ethical considerations in web design.

Raghav Gupta
Messages
1,010
Reaction score
76
Is there a way of coding a website such that the URL not sticks in history of the user afterwards? It is possible in iOS. This is a part of the trick that we are using, since nobody would want a website that is not shown in history without going in incognito mode.
 
Technology news on Phys.org
Raghav Gupta said:
Is there a way of coding a website such that the URL not sticks in history of the user afterwards? It is possible in iOS. This is a part of the trick that we are using, since nobody would want a website that is not shown in history without going in incognito mode.
Not as far as I know. Browser settings are on the client side and cannot be controlled from a website.
 
Borg said:
Not as far as I know. Browser settings are on the client side and cannot be controlled from a website.
But then how is it possible in iOS?
 
Raghav Gupta said:
But then how is it possible in iOS?
You're the one saying that it's possible in iOS. I haven't worked with that to know if it's a feature that they allow. It seems like a big security hole to allow a website to control settings on a client's system.
 
Borg said:
You're the one saying that it's possible in iOS. I haven't worked with that to know if it's a feature that they allow. It seems like a big security hole to allow a website to control settings on a client's system.
Can it be done via a javascript code? Javascript has many effects on the client.
Or if that is not possible can we trick the browser history to store URL address as an alias by some kind of meta tag?
 
Raghav Gupta said:
Javascript has many effects on the client.
It can't touch browser settings and thankfully.
 
No, history is protected from javascript access and implemented in browser specific ways. It's designed that way on purpose for security, you don't want sites to know what other sites you have been visiting. It's not possible in any way that will be consistent and permanent.
 
Greg Bernhardt said:
It can't touch browser settings and thankfully.
newjerseyrunner said:
No, history is protected from javascript access and implemented in browser specific ways. It's designed that way on purpose for security, you don't want sites to know what other sites you have been visiting. It's not possible in any way that will be consistent and permanent.
I was searching through net to find some answers and got a thread that it can be done via javascript.
http://stackoverflow.com/questions/8125585/how-to-avoid-including-a-page-in-the-browsing-history
 
  • Like
Likes   Reactions: Psinter and Greg Bernhardt
In HTML5 you get some more options:

https://developer.mozilla.org/en-US/docs/Web/API/History_API

I don't know if any of this is blocked for security reasons by any browsers. If not I wish that sites would use it to preserve the back button. Sites that break the back button should be blacklisted by all browsers, OS's, and federal and state statute.

BoB
 
  • Like
Likes   Reactions: Greg Bernhardt
  • #10
Raghav Gupta said:
I was searching through net to find some answers and got a thread that it can be done via javascript.
http://stackoverflow.com/questions/8125585/how-to-avoid-including-a-page-in-the-browsing-history
I don't want to sound negative, but did you try what the answer says in that link? Because I tried it and it doesn't work for me. Neither of the answers. The linked thread is from 2011, I tried it on Firefox and it still saved the history besides appearing in the URL bar. Perhaps things have changed since 2011 with the way browsers manage that kind of redirection.

On the other hand, this works if the page requesting the load is in the same server:
JavaScript:
$('YourReplacementDivisionID').load( "theHiddenPage.html" );
Where:

YourReplacementDivisionID -
is the ID you give to a division where you will load the page you don't want appearing in the history and url window.
theHiddenPage.html - is the page with the content that you don't want to appear in the history and URL.

You need of course to load jQuery before using this code and add the HTML elements like divisions and whatnot. Here is some more information on the load method of jQuery for a more customized loading: http://api.jquery.com/load/
 
  • Like
Likes   Reactions: Raghav Gupta and jim mcnamara
  • #11
Raghav Gupta why exactly do you want to fiddle with history?

BoB
 
  • #12
rbelli1 said:
Raghav Gupta why exactly do you want to fiddle with history?
I was wondering the same thing...
 
  • Like
Likes   Reactions: rbelli1
  • #13
Is this the first step to killing Hitler?

BoB
 
  • #14
OP, in this thread and in another, you're discussing things which, while not exactly illegal, are certainly antisocial. You probably should explain what you are doing.
 
  • Like
Likes   Reactions: Borg
  • #15
rbelli1 said:
Raghav Gupta why exactly do you want to fiddle with history?

BoB

If he tells you he's going to have to kill you
 
  • #16
rbelli1 said:
Raghav Gupta why exactly do you want to fiddle with history?

BoB
Mark44 said:
I was wondering the same thing...

Vanadium 50 said:
OP, in this thread and in another, you're discussing things which, while not exactly illegal, are certainly antisocial. You probably should explain what you are doing.
I was going through new things you can do on websites, so I was fascinated by it. Like Ajax, Mathjax, transparent video of video spokeperson, URL masking.
So can we mask our URL by typing our URL but it gets replaced by wikipedia URL, showing our webpage? Eventually it leads to wikipedia history being stored in browser.
Like here in PF you can mask site like wikipedia with yahoo by using bb codes
yahoo.com
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 16 ·
Replies
16
Views
8K
  • · Replies 23 ·
Replies
23
Views
4K
  • Sticky
  • · Replies 0 ·
Replies
0
Views
5K
Replies
29
Views
6K