是否有可能阻止浏览器保存在其历史上的网址? [英] Is it possible to stop a browser storing a URL in its history?

查看:85
本文介绍了是否有可能阻止浏览器保存在其历史上的网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户点击使用previous页面上的链接的网页,是有可能的目标页,自身雅阁,删除浏览器历史记录(自己的URL没有网页的显著修正版,其实有它的链接,除非,也许它是一个简单的HTML属性或东西)?

When a user clicks to a page using a link on a previous page, is it possible for the target page to, on its own accord, remove its own URL from browser history (without significant modification of the page that actually has the link on it, unless, perhaps it were a simple HTML attribute or something)?

显然,我不应该在URL存储敏感信息,但也有一些情况下,我要存储在URL的一些信息,并且,当它是不敏感,它仍然是更好为它不被存储在历史。 (这些URL不完全对用户有用的,如果他们在记录中显示。)

Obviously I should not be storing sensitive information in the URL, but there are some cases where I have to store some information in the URL, and, while it is not sensitive, it is still better for it to not be stored in history. (These URLs are completely not useful to the user if they were to show up in history.)

那么,有没有适合我的方式,为web应用程序开发者,让这些退出了历史,在一些现代浏览器至少有? (有什么如HTTP头,JavaScript或HTML等:加载的URL的结果页面上。)

So is there a way for me, as a webapp developer, to keep these out of history, at least in some modern browsers? (Something such as HTTP headers, JavaScript or HTML, etc on the page that loaded as a result of the URL.)

(我不感兴趣的技术,如取与AJAX,内部框架,等等,网页,用户实际上并没有定位到所述URL,但仍然能得到它的内容。)

(I'm not interested in techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it.)

推荐答案

看起来这是不可能的。

浏览器历史记录将存储的URL。可以做的最好的是无论是prevent从进入前进/后退按钮的URL,或使用的技术,如用AJAX,内部框架,等等,在用户实际不导航到获取网页说的网址,但仍然能得到它的内容的。

The browser history will store the URL. The best that can be done is either to prevent the URL from going into the back/forward buttons, or use "techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it".

接受这个答案,使问题上注明回答。

Accepting this answer to make the question to be marked "answered".

这篇关于是否有可能阻止浏览器保存在其历史上的网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆