1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to Detect where user has come from a specific website?

Discussion in 'Apache' started by hossam mutir, Nov 1, 2013.

  1. #1
    Dear all.
    I need help to configure Apache server to handle users requests
    using condition based on where he come from so i can redirect him .
    what i need if user came with from site start with xn--* redirect him to virtual host
    and if he came from any other link then go to another virtual host
    please help me with that.
    Thanks all,
     
    hossam mutir, Nov 1, 2013 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    $_SERVER['HTTP_REFERER']
    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modifyHTTP_REFERER as a feature. In short, it cannot really be trusted.

    as per http://php.net/manual/en/reserved.variables.server.php
     
    bartolay13, Nov 6, 2013 IP
  3. hossam mutir

    hossam mutir Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thank you , working fine
     
    hossam mutir, Nov 14, 2013 IP