Created
January 24, 2018 15:53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function redirect_no_referral($url) | |
{ | |
echo '<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta http-equiv="cache-control" content="max-age=0" /> | |
<meta http-equiv="cache-control" content="no-cache" /> | |
<meta http-equiv="expires" content="0" /> | |
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> | |
<meta http-equiv="pragma" content="no-cache" /> | |
<meta http-equiv="refresh" content="3;url='.$url.'"> | |
<title></title> | |
<script type="text/javascript"> | |
<!-- | |
var redirect = function() | |
{ | |
document.getElementById("link").click(); | |
} | |
--> | |
</script> | |
</head> | |
<body onload="redirect();"> | |
<a href="'.$url.'" rel="noreferrer" id="link"></a> | |
</body> | |
</html>'; | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment