Java Glossary : referer

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : R words : referer.

referer
Let us say I put this link on my web page: Visit Borland! The HTML for the link looks like this:

<a href="http://www.borland.com">Borland</a>

When somebody clicks it, they will be taken to the Borland site. How do the Borland people know it was my site that referred them there? The browser automatically inserts a field called Referer in the header of the HTTP request packet sent to Borland to fetch their home page that says the link came from mindprod.com/jglossr.html. Borland might write a CGI program to extract it by refering to a variable like HTTP_REFERER.

Opera allows users to decide themselves if referring pages will be transmitted, under File | Preferences | Privacy | Enable referrer logging. Webmasters who want to analyze their traffic probably don't like that feature. Some proxies are configured to strip the header or insert a bogus header, so you can't rely on the referer field being set correctly.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1451.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/referer.html J:\mindprod\jgloss\referer.html