#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    35
    Rep Power
    15
    I am developing a multi-affiliate counter server, so I want to record the referrer site when user visit one of our members.
    There are four entity: viewer,referrer_site,member_site,ours(server site).

    when viewer visit member_site from referrer_site, the member_site send a request of recording this visit to ours.

    I know $HTTP_REFERER, but I think it will be member_site becouse the request to ours is from our member_site.

    How can I get the referrer_site's host name?
    thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Newark, DE, USA
    Posts
    39
    Rep Power
    15
    you'll need the script on the member_site to capture the referrer_site, then send it to your server.

    ------------------
    ~Chris
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    35
    Rep Power
    15
    I looked through JS mannul and found "history.previous" may help.

    But what if viewer right click and choose "open in new window"?
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    28
    Rep Power
    0
    Eh, it's document.referer in JS, and it works in a new window as well.

Similar Threads

  1. testing before moving web site
    By csross in forum Apache Development
    Replies: 1
    Last Post: February 4th, 2004, 02:17 PM
  2. Problem with old site showing?
    By fireatwill in forum DNS
    Replies: 2
    Last Post: January 31st, 2004, 04:50 PM
  3. Replies: 1
    Last Post: January 30th, 2004, 02:10 AM
  4. site navigation
    By bramsey in forum .Net Development
    Replies: 1
    Last Post: December 9th, 2003, 12:07 PM
  5. setup a site mirror
    By ovisopa in forum DNS
    Replies: 4
    Last Post: December 8th, 2003, 09:59 PM

IMN logo majestic logo threadwatch logo seochat tools logo