I want to block a website. Can I password protect a website? I mean that whenever I have to open that website, I have to enter a password? If yes then how?
Bravenet Password Protect
is an online tool with which you can provide a login form on your site. The real address of your page will remain hidden, so that readers cannot bypass the login
Zubrag Wegpage Password Protect
is a free PHP code that you can use to password-protect your website. The script will show a password entry form to readers. You can create multiple user accounts, and automatic/manual logouts.
Simple 448 bit blowfish password protection:
Password protect a page
CoffeeCup Password Wizard
you want to make sure your password protection script is secure. You simply tell CoffeeCup your username, password and the page you want it to direct to, and it creates the code that you paste into your web page.
If you DIDN'T make the website and you just wish to block access to it, you need some sort of content blocker on your browser (if you use Internet Explorer, the Content tab of the Internet Settings dialog has one built in). If you use Firefox, there are plenty of extensions that can do it for you (I think).
you could do a php login procedure similar to those found in forums, check google or youtube