if (window.location.host=="127.0.0.1" || window.location.host=="localhost" ){ alert( "hostis local");}