JSFiddle - React, Tailwind, and code Playground
HTML
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
var password;
var pass1="put ur password here";
password=prompt('Please enter your password to view this page!',' ');
if (password==pass1)
alert('Password Correct! Click OK to enter!');
else
{
window.location="&&& u can put any url here";
}
//-->
</SCRIPT>
</HEAD>