<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Access Check</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin-top: 50px;
        }
    </style>
</head>
<body>
    <div id="content" style="display: none;">
        <h1>Welcome to the page!</h1>
        <p>You have successfully accessed the correct URL.</p>
    </div>
    <div id="error" style="display: none;">
        <h1>Access Denied</h1>
        <p>This page can only be accessed from <a href="https://nannestad-imk.no/~sumit/">https://nannestad-imk.no/~sumit/</a>.</p>
    </div>

    <script>
        (function() {
            const allowedURL = "https://nannestad-imk.no/~sumit/";

            // Check if the current URL matches the allowed URL
            if (window.location.href === allowedURL) {
                document.getElementById('content').style.display = 'block';
            } else {
                document.getElementById('error').style.display = 'block';
            }
        })();
    </script>
</body>
</html>
