Get url for the page being opened next in [removed] event

前端 未结 2 1954
遇见更好的自我
遇见更好的自我 2021-01-21 03:37

Is there a way get the location for page being opened next in the window.onunload event.

Best Regards, Keshav

2条回答
  •  情深已故
    2021-01-21 04:06

    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 bar Search for referer (sic) Set network.http.sendRefererHeader to 0

    (Courtesy to http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/)

提交回复
热议问题