Skip to content

HTML Removing Referers On Links And Resources

HTML Removing Referers On Links And Resources

There are many ways to achieve this now in 2018 and pretty much any modern browser will support the various methods that I will be listing below.

    1. Setting the noreferrer in your <a> tag
      <a href="example.com" rel="noreferrer">link</a>
    2. Setting the meta name=’referrer’
      <meta name="referrer" content="no-referrer">

      There are a few options instead of no-referrer (which may prevent POSTs).never,always,origin,default

    3. Ensure your site is browsed over HTTPS
      When your site is ran over HTTPS, referer is not set as part of a security feature.
    4. Use a Data URL (‘data:’)
      <a href='data:text/html;charset=utf-8, <html><meta http-equiv="refresh" content="0;URL=&#39;http://www.example.com/&#39;"></html>'>Link</a>

       

 

Enjoyed the content ? Share it with your friends !
Published inDevelopmentProgramming

Be First to Comment

Leave a Reply

Your email address will not be published.