Stop link from sending referrer to destination

前端 未结 6 1991
陌清茗
陌清茗 2020-12-02 08:38

I have a page where I don\'t want the outbound links to send a referrer so the destination site doesn\'t know where they came from.

I\'m guessing this isn\'t possibl

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 08:57

    I was trying to figure this out too.

    The solution I thought of was to use a data url to hide the actual page I am coming from.

    Link
    

    This link opens a page that only contains javascript to load a different page. In my testing no referrer is given to the final destination. I don't know what it could send as a referrer if it tried anyways, maybe the data url ? which wouldn't give away where you came from.

    This works in Chrome. Chrome is my only concern for my current problem but for browsers that don't like javascript in pages that are data urls. You could probably try a meta refresh.

提交回复
热议问题