Hiding the url from history in chrome and android

Click For Summary
The discussion centers on the possibility of coding a website so that its URL does not remain in the user's browser history, a feature reportedly available on iOS. Participants express skepticism about the feasibility of this due to browser security settings, which are designed to protect user privacy by preventing websites from altering history. While some suggest that JavaScript could be used to manipulate browser behavior, others clarify that such methods are limited and inconsistent across different browsers. A reference to HTML5's History API is made, but doubts are raised about its effectiveness and security implications. Additionally, there are concerns regarding the motivations behind wanting to hide URLs, with some participants questioning the ethical implications of such actions. Overall, the consensus is that while there are methods to influence browser history, they are not reliable or universally applicable.
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 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 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 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 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 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
1K
  • · 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
3K
Replies
29
Views
5K
  • Sticky
  • · Replies 0 ·
Replies
0
Views
4K