CodeIgniter Forums

Full Version: Referer/Referrer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

The Useragent class has a function named "referrer()", but the official HTTP term is "referer".


A misspelling of "referrer" which somehow made it into the HTTP standard. A given web page's referer (sic) is the URL of whatever web page contains the link that the user followed to the current page. Most browsers pass this information as part of a request.

This could confuse some people. I just searched in the docs for 'referer' and found nothing (not even referrer). Maybe an idea to at least note this, or make an alias function?