Drupal/Show specific page only to visitors from a specific referral

83 views
asked Mar 24, 2013 in Website Builder by carebare (1,420 points)
I want to show only visitors from a specific referral site a specific block on page in my Drupal site. I am using Drupal 7  and I am not able to find a way for my site to recognize the referring URL and act on it. Does anyone have any ideas how to do this? Your help is highly appreciated..
Many thanks

1 Answer

0 like 0 dislike
answered Mar 24, 2013 by randy999 (4,520 points)
You could check using this code in your template
$_SERVER['The-HTTP-REFERER'];
...