Diễn Đàn SEO Panda - SEO Panda Forum

Diễn Đàn SEO Panda Dành Cho Các SEOers Tự Do Thảo Luận SEO - SEO Panda Forum - Free SEO Forum to share your knowledge to the world
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics

Share | 
 

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

View previous topic View next topic Go down 
AuthorMessage
khiemsound



Posts : 1016
Points : 11625
Join date : 2012-03-27

PostSubject: Referrer - what you need to know (and how you control it)   Wed May 02, 2012 4:50 pm

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.
Back to top Go down
View user profile
 
Referrer - what you need to know (and how you control it)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Test javascript Calendar
» Avoid browser closing on selenium RC shutdown
» Silenium IDE code for selecting and ajax autopopulate dropdown item
» Selenium Remote Control misbehaves
» How to disable Remote Control page popping up?

Permissions in this forum:You cannot reply to topics in this forum
Diễn Đàn SEO Panda - SEO Panda Forum :: Search Engine Optimization :: Black Hat SEO-
Jump to: