- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
function clean_url ($url) {
if ($url == '') return;
$url = str_replace("http://", "", strtolower($url));
$url = str_replace("https://", "", $url );
if (substr($url, 0, 4) == 'www.') $url = substr($url, 4);
$url = explode('/', $url);
$url = reset($url);
$url = explode(':', $url);
$url = reset($url);
return $url;
}
if (clean_url($_SERVER['HTTP_REFERER']) != clean_url($_SERVER['HTTP_HOST'])) die("Hacking attempt!");
Morgan 30.11.2010 00:11 # 0
istem 30.11.2010 03:55 # +3
--
Ага, как и в случае прямых заходов...
andremacareno 30.11.2010 19:45 # −2
bugmenot 30.11.2010 20:00 # +2
andremacareno 02.12.2010 22:30 # −2
Подпись: Черный Властелин