Redirecting By Referrer

Discussion in 'Scripts' started by fireflyproject, Mar 23, 2007.

  1. #1
    I'm trying to come up with a script (or find an already created one) that will redirect users by the referrer. Like let's say a user comes from Google, I want them to be directed to a certain directory, if they come from a link I payed for, to another directory, and so on and so forth. I would also need it to have a default place to send the user.

    Does anyone know of a script like this?
     
    fireflyproject, Mar 23, 2007 IP
  2. fireflyproject

    fireflyproject Active Member

    Messages:
    969
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Nobody does?
     
    fireflyproject, Mar 25, 2007 IP
  3. mojojuju

    mojojuju Peon

    Messages:
    53
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is easily done using the HTTP_REFERER variable

    http://www.phpjabbers.com/redirect-based-on-referrer-or-ip-address-php2.html
     
    mojojuju, Mar 26, 2007 IP