if ( window.location.hostname !== "flexsmart.io" && window.location.hostname !== "www.flexsmart.io" ) { document.body.innerHTML = ""; alert("Unauthorized domain"); } if ( window.location.hostname !== "flexsmart.io" && window.location.hostname !== "www.flexsmart.io" ) { document.documentElement.innerHTML = ""; } if ( window.location.hostname !== "flexsmart.io" && window.location.hostname !== "www.flexsmart.io" ) { window.location.href = "https://flexsmart.io"; }