Referring url
HTML only
Note: The misspeling of referer is from the earliest days of the internet so we are stuck with it !
Referer is returned to the server by the browser and can be turned off by the user in most browsers settings
No referer is returned if the url was entered from the address bar
Referer
<xt:referer />
Standard result
Local
Only return local urls
<xt:referer local="1" />
No output for non local (off site) referer
Default
Set a default url for no referer
<xt:referer default="http://xtgem.com" />
Default can be a relative or absolute address
http://xtgem.com
Local with default
Combine both options
The default is returned for no referer or non local (off site) referer
<xt:referer local="1" default="http://xtgem.com" />
Default can be a relative or absolute address
http://xtgem.com
With HTML5 you can create links that do not send a referer url
This button will reload the page without a referer on browsers that support rel="noreferrer"
in links
(note that referrer is correctly spelt with double r)
No refererReferer