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

[PHP] Question regarding refferer

Discussion in 'Black Hat SEO' started by royserpa, Sep 25, 2013.

  1. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,646
    Likes Received:
    3,492
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    Hey guys,

    I am thinking of creating a script that uses the referrer as variable. But i would like to know, what would the referrer be if i refreshed a page. Would the refferrer be blank? Or the refreshed page? Or the page you came from on the first place?

    Thx guys, any help is appreciated!
     
  2. seeplusplus

    seeplusplus Power Member

    Joined:
    Aug 18, 2008
    Messages:
    511
    Likes Received:
    163
    Put it into a session variable when they first hit your site, then no matter what happens, the original value will still be the same.


    Easy to fake the referrer though. :)
     
    • Thanks Thanks x 1
  3. Mr.Nick..

    Mr.Nick.. Regular Member

    Joined:
    Sep 17, 2012
    Messages:
    235
    Likes Received:
    105
    Location:
    Georgia, Tbilisi
    Or use cookies :)
     
    • Thanks Thanks x 1
  4. itsjinx

    itsjinx Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    457
    Likes Received:
    72
    Occupation:
    SEO Blackhatter
    Location:
    Digital Underworld
    it would be a blank referrer. use a session as others suggested
     
    • Thanks Thanks x 1
  5. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,646
    Likes Received:
    3,492
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    Thanks guys,

    I really don't know why I didn't think of sessions before :D:D

    This should be a piece of cake now :D
     
  6. archon10

    archon10 BANNED BANNED

    Joined:
    Oct 10, 2011
    Messages:
    1,181
    Likes Received:
    1,660
    I like your attempt to get the misspelling right, but it's "referer" not "refferer." But A+ for effort.