Este es el código
Código PHP:
# CHECK SESSEION COOKIE
If($_SERVER[“SERVER_NAME”] != 'localhost'){
if($_SERVER["REQUEST_METHOD"] == 'GET'){
if(strpos($_SERVER["HTTP_REFERER"], 'google') !== false){
if( isset($_COOKIE['r']) || isset($_GET['r']) ){
setcookie('r', '', time()-3600);
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://{$_SERVER['SERVER_NAME']}/");
exit;
}
}
}
}
# FUNCTIONS
require_once(‘/includes/php/funkcje.inc.php');
# DOWN FUNCTION
register_shutdown_function('_SHUTDOWN);