Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CameViaWebsite()
- {
- if(empty($_SERVER['HTTP_REFERER'])) return false;
- $url = $_SERVER['HTTP_REFERER'];
- $url = explode('http://',$url);
- $url = $url[1];
- $url = explode("/",$url);
- $url = $url[0];
- $key = $_SERVER['SERVER_NAME'];
- if($key == str_replace($url,'',$key)) return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment