Skip to content
WJunction - Webmaster Forum

is this possible on wordpress?

Status
Not open for further replies.
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.

About the author

E
Banned · Joined
66
Messages
4
Reactions
8
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom