Referrer - what you need to know (and how you control it)

SEO20

BANNED
Joined
Mar 25, 2009
Messages
1,923
Reaction score
2,323
OK - there is a LOT misinformation about referrers.

What is a referrer?
The referrer, or HTTP referrer?also known by the common misspelling referer that occurs as an HTTP header field?identifies, from the point of view of an internet webpage or resource, the address of the webpage of the resource which links to it.

By checking the referrer, the new page can see where the request came from. Referrer logging is used to allow websites and web servers to identify where people are visiting them from, for promotional or security purposes.

Referrer is a popular tool to combat cross-site request forgery, but such security mechanisms do not work when the referrer is disabled. Referrer is widely used for statistical purposes.

Examples

Example 1.
I have a fantastic website with a landing-page:
http://www.mydomain.com/buycoolstuffnow.html

On the page buycoolstuffnow.html I link to http://www.google.com
What is the referrer google sees when the link is from buycoolstuffnow.html. Correct it's http://www.mydomain.com/buycoolstuffnow.html.

Example 2.
On http://www.mydomain.com/buycoolstuffnow.html I include an iFrame displaying http://www.google.com. What is the referrer Google sees? Yes - http://www.mydomain.com/buycoolstuffnow.html.

Example 3.
What if our Google.com url links to someting external Page C. Click the link, the iframe now shows page C. What is the referrer for C?
Most browsers report that referrer is B (Google.com).

Example 4.
What if you nest iframes in Iframes etc.?
Well Always look at the page where the link is located. The closest containing page will always be the referrer for the link.
If you have nested iframes the referrer for the iframe is the closest containing iframe or page.

How to test?
Always use a site like
http://www.whatismyreferrer.com/
to test your setup.

Remember you can't do a proper test before your site is actually online and not run locally on your machine.

Want to keep this basic as you need to know the basics before moving on to more advanced stuff - so nothing here about clearing or spoofing.
 
Thanks, this is a great intro for people who don't know, or who need a brushup lesson!
 
Excellent, I'm in the process of implementing iframes into my site and figured this would be how it worked. Thanks for the clarification.

Lots of uses for this :)
 
Was tired of seeing all kind of myths about referrer :-)

The referrer is a giant sub-aquatic creature that lives in a massive underground aquarium.. inside the basement of BHW, and refers people to other sites where they can make money ! You can only access the great referrer if you yourself have been referred to the referrer! If you were not referred by a Jr.VIP then the referrer will do this :boring:.. and eat you!:eek:

P.S. The referrer is my cousin... so I know my shit!
 
What are you on dude? :-)

The referrer is a giant sub-aquatic creature that lives in a massive underground aquarium.. inside the basement of BHW, and refers people to other sites where they can make money ! You can only access the great referrer if you yourself have been referred to the referrer! If you were not referred by a Jr.VIP then the referrer will do this :boring:.. and eat you!:eek:

P.S. The referrer is my cousin... so I know my shit!
 
My hats off to you yet again! Great work on really giving these new members something to get there feet wet with.
 
Well we are here to help each other :-)
My hats off to you yet again! Great work on really giving these new members something to get there feet wet with.
 
seo20 great work buddy, Im sure many people will find this helpful!

should I sticky this?
 
thanks for the useful information, people really need to know what referrer is when s/he get into the black hat business
 
what the best method to hide referer for Chrome and Opera?

since this browser cant hide referer with meta refresh :(

anyway thanks for details about referer seo20 :)
 
This concept is new to me, but let me try to take a shot at this... So the more popular the referrer, the higher your rankings on search engines like Goggle and Yahoo?
 
No. The referer(yes it's spelled "referrer" but when setting the header you need to spell it "referer"), is a variable set and passed by the browser to a web server, just like the user-agent.

The referer variable shows the web server where the visitor came from and will end up in logs. Sometimes it's used for link building, like in WP Trackbacks... but it's also used to verify traffic sources.

The people here in BHW are generally concerned with sending a clean referer to affiliate offers so that they don't get their accounts banned for sending traffic from unwanted sources; IE email, or social media.

This concept is new to me, but let me try to take a shot at this... So the more popular the referrer, the higher your rankings on search engines like Goggle and Yahoo?
 
Thanks SEO, nice info for a tech noob and pure white hat optimizer (until I found BHW) :D
 
thanks for the post :) now how to take it to the next level...
 
thanks for this,and now still learning the how to blank referrer throut https
 
Back
Top