问题描述
最好的问候,
Keshav
不!这将是一个安全问题。想象一下,有人从色情网站导航到银行网站。反过来(使用HTTP Referrer头文件)已经有点让人头疼了。 Firefox允许禁止引用者:
在地址栏中输入about:config
搜索referer(原文如此)
Set network.http.sendRefererHeader到0
(礼貌地)
Is there a way get the location for page being opened next in the window.onunload event.
Best Regards,Keshav
No! That would be a security problem. Imagine someone navigating from a porn site to a banking site. The other way round (with the HTTP Referrer header) is already somewhat a headache. Firefox allows to suppress the referrer:
Enter about:config in the address barSearch for referer (sic)Set network.http.sendRefererHeader to 0
(Courtesy to http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/)
这篇关于获取window.onunload事件中正在打开的页面的url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!