is_valid) { $isValidAuth=true; } } //if someone clicks on a link to your website from wacebook else if(preg_match('/www.facebook.com/', $_SERVER["HTTP_REFERER"])) { $isValidAuth=true; } //if the cookie was already set else if(isset($_COOKIE["noauth"])) { $isValidAuth=true; } $target="/"; if(isset($_GET["target"])) { $target = $_GET["target"]; } if($isValidAuth){ setAuth(); header("Location: http://manuelbaumann.com$target"); //forward to the target exit; } //create a cookie that is valid for ages function setAuth() { setcookie("noauth", "IF-ONLY-MACHINES-KNEW-THIS", time()+3600*24*365, "/"); } ?> manuelbaumann.com/howdy

Let's make sure, that you are human

no worries, this won't show up very soon