Jump to content

http refering site


monkeybidz

Recommended Posts

I need help to redirect page depending on referer.

 

If referer is https:www.paypal.com

include thispage.php

else

include thatpage.php

 

Can someone help with the code?

 

This is what I have so far:

 

$ref = getenv("HTTP_REFERER");
if($ref == "https://www.paypal.com"){
include "thispage.php";
}else{
include "thatpage.php";
}

 

Link to comment
https://forums.phpfreaks.com/topic/152130-http-refering-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.