is this possible on wordpress site?

Discussion in 'Programming' started by haliloo22, Nov 12, 2013.

  1. #1
    hello,

    is there a code with which i can show a banner on my site if a visitor is from a specific domain?

    like if website www.nu.nl is relinking to a post on my wordpress site, only if this visitor is from this website www.nu.nl a banner/ads will be showed under that post on my site

    is somebody able to create such code which i can insert in my site in single.php?
     
    haliloo22, Nov 12, 2013 IP
  2. competent123

    competent123 Notable Member

    Messages:
    1,752
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
    #2
    yes, that would be possible, to check refer and then show specific ad

    Regards
     
    competent123, Nov 12, 2013 IP
  3. blastdown

    blastdown Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    yes normally you can see it in your google analytique panel they track referral website
     
    blastdown, Nov 13, 2013 IP
  4. senecacollege

    senecacollege Well-Known Member

    Messages:
    457
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #4
    
    <?php if(isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']=='www.nu.nl') { ?>
    your banner html is here
    <?php } ?>
    
    Code (markup):
     
    senecacollege, Nov 13, 2013 IP