1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

When iframing a site, does it pass the referrer information.

Discussion in 'Black Hat SEO' started by Ayomav, Mar 23, 2012.

  1. Ayomav

    Ayomav Regular Member

    Joined:
    Nov 23, 2011
    Messages:
    250
    Likes Received:
    19
    Hello,

    I just tried it and test the referrer information, but it shows as blank.Shouldn't it shows the page I iframe as the refererr.Is it normal ?

    Thanks
     
  2. meannn

    meannn Supreme Member

    Joined:
    Apr 22, 2009
    Messages:
    1,461
    Likes Received:
    1,896
    Occupation:
    Unemployed Winner
    Location:
    TR
    The file (which iframe included in) should be on the server.
     
  3. Ayomav

    Ayomav Regular Member

    Joined:
    Nov 23, 2011
    Messages:
    250
    Likes Received:
    19
    I didn't get you, I will try and explain again what I did.

    I created 2 html pages.

    1st page have some text and statcounter code.

    2nd page have an iframe code (showing the first page in an iframe.)

    So, when I visit the 2nd page, the 1st page is also loaded in an iframe.

    Now, when I check the statcounter for the 1st page, it shows 1 hit, but the referrer is blank, my question is , is this normal, will it always shows blank for iframe.If a link is click on 2nd page, it would show the 2nd page as referrer, but if it's in an iframe, it shows blank, is this normal ?

    Hope I make it clear.

    Thanks
     
  4. m4dm4n

    m4dm4n Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2010
    Messages:
    221
    Likes Received:
    92
    Occupation:
    /dev/full
    Location:
    /dev/urandom
  5. petefader

    petefader Junior Member

    Joined:
    Oct 21, 2011
    Messages:
    153
    Likes Received:
    12
    If I use reddit or Digg as iframe for my site. Reddit and Digg would be the referrer?
     
  6. hellohellosharp

    hellohellosharp Power Member

    Joined:
    Dec 8, 2010
    Messages:
    625
    Likes Received:
    552
    Occupation:
    CEO @ CLEANFILES LLC
    Location:
    USA
    Home Page:
    No, you are doing something wrong.

    You should be using PHP to show your referrer.

    If I iframe an offer on my website, that offer will see my website as the referrer.
     
  7. Ayomav

    Ayomav Regular Member

    Joined:
    Nov 23, 2011
    Messages:
    250
    Likes Received:
    19
    Hello, I have tried with php files aswell, still same result.I think you are confusing me.

    Thanks
     
  8. Ayomav

    Ayomav Regular Member

    Joined:
    Nov 23, 2011
    Messages:
    250
    Likes Received:
    19
    zzzzzzzzz.
     
    Last edited: Mar 23, 2012
  9. Rambaldi

    Rambaldi Registered Member

    Joined:
    Nov 30, 2009
    Messages:
    81
    Likes Received:
    11
    Occupation:
    Programmer
    Location:
    Sweden
    Sigh.

    Iframing a website does show your referrer, if it does not that might be a setting in your webbrowser or an extension/plugin for it.

    To check referrer, simple PHP code <?=$_SERVER['HTTP_REFERER'];?>
    Or just iframe a site like http://www.stardrifter.org/cgi-bin/ref.cgi and see what it gives you.

    If you want to spoof or hide referrer, do a series of different redirects (301+META+JS) to be sure. Some browsers work differently..


    In the case of StatCounter (which you took as an example) it might be that they take referer using eg. JS which might not update in an iframe. You can also test this easily by placing JS code <script>alert(document.referrer)</script>
     
    Last edited: Mar 23, 2012
  10. lsmstd

    lsmstd Regular Member

    Joined:
    Jan 9, 2012
    Messages:
    388
    Likes Received:
    113
    :bsflag: WTF?:bsflag:

     
  11. Ayomav

    Ayomav Regular Member

    Joined:
    Nov 23, 2011
    Messages:
    250
    Likes Received:
    19
    Thanks.