Status
Not open for further replies.

elma22

Banned
Banned
66
2013
4
0
hello,

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

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

is somebody able to create such code which i can insert in my site in single.php?
 
Last edited:
2 comments
to check if visitor is from nu.nl this should work:

Code:
if(isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == 'http://www.nu.nl/') { 
  // display ad here 
}

it only works if user clicks a link on http://nu.nl that leads to your site
 
Status
Not open for further replies.
Back
Top