script Hide Header Referrer link

hide your referrer
Create an anonymous link that will hide the HTTP Referer header.

example
https://domain.ltd/?https://www.google.com

<?php
// รับ URL จาก QUERY_STRING
$url = trim($_SERVER['QUERY_STRING']);

// ตรวจสอบว่า URL ถูกต้องหรือไม่
if (!filter_var($url, FILTER_VALIDATE_URL)) {
    die("Invalid URL");
}

?>
<!DOCTYPE html>
<html>
<head>
    <title>domain.ltd</title>
    <meta http-equiv="Refresh" content="0; url=<?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8'); ?>" />
    <meta name="referrer" content="no-referrer" />
    <script type="text/javascript">
        /* <![CDATA[ */
        window.location.replace("<?= addslashes($url); ?>" + window.location.hash);
        /* ]]> */
    </script>
</head>
<body>
    <p>Redirecting..<br />
        <a href="<?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8'); ?>">
            <?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8'); ?>
        </a>
    </p>
</body>
</html>

 March 23, 2023

 Blog | # # #

qrcode
Facebook Facebook X / Twitter Twitter Telegram Telegram Pinterest Pinterest Email Email

Re-commend-เด็ด ๆ ต่อจาก script Hide Header Referrer link

  • Magicz?~