<html>

<body>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js";></script>
<script>
$(document).ready(function() {
host=document.domain;
if(host == "www.peter.xyz"){
alert("Is right");
}
else{
alert(host);
}
});
</script>
</body>
</html>