I have one mailbomber script

When i hit my web address/mail.php is automatically open


But now i want to password protect

Mean when i click my website/mail.php it should ask username and password


How to do that?