I just wanted to know if there was a way to get something to be future proof, as we may create new subdomains, and want people know that the site they are using is correct (as we have had a few cases of people rehosting our site)
if(window.location.href != "example.com" || "*.example.com"){
document.getElementById('alert').innerHTML = "This is site is not recognized as an official site";}
Where "*" would be a wildcard for any subdomain, and the ID "alert" is a div which we use to display important message.