logo
Home XtGem- Templates- XtScript- bottom
XtGemmanual

XtGem tags and tools

xt referer

Referring url
HTML only

Notes

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
http://example.com/page-you-came-from
Local
Only return local urls
<xt:referer local="1" />
No output for non local (off site) referer
http://example.com/page-you-came-from
Default
Set a default url for no referer
<xt:referer default="http://xtgem.com" />
Default can be a relative or absolute address
http://example.com/page-you-came-from
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://example.com/page-you-came-from
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

Related

Url

XtGem manual · all sections

Powered by XtGem
About us Contact Forum top