Stop link from sending referrer to destination

前端 未结 6 1997
陌清茗
陌清茗 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条回答
  •  萌比男神i
    2020-12-02 08:56

    HTML 5 includes rel="noreferrer", which is supported in all major browsers. So for these browsers, you can simply write:

    link
    

    There's also a shim available for other browsers: https://github.com/knu/noreferrer

提交回复
热议问题