Stop browsing history

I am currently developing a website for asylum for women. Since this is very important information for those who use the site, I would like to stop the browser from storing any history of their visits. Is it possible to use something like the HTML5 history API? Ideally, this will work in IE6 +, as many people use older versions of IE.

I know that browsers have Private Browsing modes, but most people are not aware of them, so a better way would be better.

One possible (though less preferable) solution would be to force people to use private browsing if they are not currently doing so. Can this be detected through JavaScript?

EDIT: I accepted Virgil's answer, because reduction is the best option, as they may need to apply what they learned on other sites. I also used Joseph location.replace in my hidden visit button to disable the back button.

It is interesting to note that I tried to use history.replace on all links on the site, thinking that this will replace the entire browser history if you recall only the last page viewed. However, opening the history panel in Firefox, which was not tested in other browsers, still showed the log of each page viewed, they were simply inaccessible using the "Back" button.

So, for those who have a similar request, I would like to repeat that user training is the first step in protecting them. Thanks everyone for the advice.

Hi

Ric

+6
source share
4 answers

Unfortunately this is not possible. To delete their history, you must take user action. I suggest you issue a warning so that women can delete their story, and you can include instructions for each main browser. As for HTML5 and JavaScript, this would not be possible in IE6 because it does not support HTML5.

+3
source

One way to do this is to do all the navigation exclusively through javascript using locarion.replace (url). This does not save the state of the story, but also means that the user cannot use bookmarks either. For reference, it will look like this

 <a href="javascript:location.replace(location.host + '/wherever.html')" href="wherever.html">wherever</a> 

Or

 <a href="#" onclick="location.replace(location.host + 'wherever.html'); return false;">wherever</a> 

or similar.

+3
source

Well, although I donโ€™t think you can โ€œforceโ€ users to use private browsing, you can give them any opportunity to avoid the story.

For example, ask the site to try to save a cookie (both from the server and using javascript). If the server can then re-detect the cookie the next time you visit, redirect them to the landing page "Use private browsing [and here how] or go at your own risk."

As for the only way around it.

Of course, I will use SSL, but I think that is more implied.

0
source

Will the solution use HTTPS? I am sure that browsers do not store history for these sites.

-4
source

Source: https://habr.com/ru/post/900058/


All Articles