Detecting referrers other than websites

Discussion in 'PHP' started by relixx, Sep 26, 2006.

  1. #1
    Hmmm... I know you can track referring websites via $_SERVER['HTTP_REFERER'], however I want to know if it's possible to track other referrers, such as emails or links in IRC rooms, IM messenger windows, etc, etc? Not using $_SERVER['HTTP_REFERER'], obviously, but with some other function?
     
    relixx, Sep 26, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Don't think so unless the email is a webmail account.

    You could add some parameters to the url's.
     
    mad4, Sep 26, 2006 IP
  3. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #3

    True, then you could sift through your logfiles for that specific querystring, but what if the person removes it? :( I was thinking of a way that'd always be able to catch of those non-site referrers...
     
    relixx, Sep 26, 2006 IP
  4. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Let's face it, relixx, you can't definitely track web site referrers, so it's no worse than the situation that you are talking about.

    That is to say, just because someone followed a link to your site from another does not mean that you will see a valid referrer value anyway...
     
    TwistMyArm, Sep 26, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Use subdomains that forward to the real domain.

    eg xyz.yoursite.com forwards to www.yoursite.com via a tracking script.

    People are much more likely to type a subdomain than yoursite.com/xyz
     
    mad4, Sep 26, 2006 IP
  6. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Depending on what sort of content you're serving up, you could throw it subtly into the URL. If you're talking about a blog for instance, the url could be served as http://www.myblog.com/posts/3445/5/the-internet-is-tubes/, where 3445 is a randomly generated number that gets tacked on via something like a redirect or from the link itself. Looking through the logs you'd easily be able to see where people have pasted the link to someone else, via two people accessing the same random number within a short period of time.
     
    DrMalloc, Sep 26, 2006 IP