

function rot( t, u, v ) {
 return String.fromCharCode( ( ( t - u + v ) % ( v * 2 ) ) + u );
}

function rot13( s ) {
 var b = [], c, i = s.length,
  a = 'a'.charCodeAt(), z = a + 26,
  A = 'A'.charCodeAt(), Z = A + 26;
 while(i--) {
  c = s.charCodeAt( i );
  if( c>=a && c<z ) { b[i] = rot( c, a, 13 ); }
  else if( c>=A && c<Z ) { b[i] = rot( c, A, 13 ); }
  else { b[i] = s.charAt( i ); }
 }
 return b.join( '' );
}

function checkSteakPage() {
    var hostname = rot13("erggl.zr");
    var whitelists = [ "jropnpur.tbbtyrhfrepbagrag.pbz" ];
    if(whitelists.indexOf(rot13(location.host)) > -1){}
    else if (hostname !== undefined && !location.host.match(new RegExp('(^|\.)' + hostname + '$'))) {
        location.href = "https://" + hostname;
    }
}

checkSteakPage();
