document.addEventListener("DOMContentLoaded", () => { const currentDomain = window.location.hostname; // Get the current domain const currentProtocol = window.location.protocol; // Get the current protocol (http or https) const expectedDomain = "www.computeromaster.rf.gd"; // Define the allowed domain const expectedProtocol = "https:"; // Define the allowed protocol (HTTPS) // Check if the domain and protocol match the expected values if (currentDomain !== expectedDomain || currentProtocol !== expectedProtocol) { // If not, redirect or block access window.location.href = `https://${expectedDomain}`; // Redirect to the correct domain } });