javascript - How to hide refferer from a website -


this question has answer here:

for example have website x , don't want other site y, know url adress if goes site y through website x. how do that?

there noreferrer value rel attribute:

https://html.spec.whatwg.org/multipage/semantics.html#link-type-noreferrer https://developer.mozilla.org/en-us/docs/web/html/link_types

prevents browser, when navigating page, send page name, or other value, referrer via referer: http header. (in firefox, before firefox 37, worked in links found in pages. links clicked in ui, "open in new tab" via contextual menu, ignored this).

example:

 <a href="http://www.example.com" rel="noreferrer">example</a> 

there library tries support noreferrer on older/non-supportive browsers:

https://github.com/knu/noreferrer


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -