-6

I have a website with two landing pages (www.abc.com):

  • landing page- 1 =(www.abc.com/index.php)
  • landing page- 2 =(www.abc.com/index1.php)

Conditions of landing page 2:

  • robots can not be allowed
  • referral traffic allowed for united states only (if anyone connects from another country the website will open the default page).

Note: Referral traffic means the traffic which we purchased from adnetworks.

How can we stop robots and how we can redirect the referral traffic from a selected country and how will we detect the country?

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

1

In your PHP script, you can always check the $_SERVER['HTTP_REFERER'] value and redirect to the appropriate page using:

header('Location: '.$pageYouWanToRedirectTo);
exit();
itoctopus
  • 4,133
  • 4
  • 32
  • 44