gamer931215

CameViaWebsite

Oct 6th, 2011
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. function CameViaWebsite()
  2. {
  3.     if(empty($_SERVER['HTTP_REFERER'])) return false;
  4.     $url = $_SERVER['HTTP_REFERER'];
  5.     $url = explode('http://',$url);
  6.     $url = $url[1];
  7.     $url = explode("/",$url);
  8.     $url = $url[0];
  9.     $key = $_SERVER['SERVER_NAME'];
  10.     if($key == str_replace($url,'',$key)) return false;
  11.     return true;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment