How can I password protect a website?

Rohan June 10, 2011

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?

  1. Anonymous
    June 11, 2011 at 2:21 pm

    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

    Javascript Kit Password Protecting
    provides you six free Javascripts you can use to password-protect your website, create a login form, and generate random passwords. The Javascript Kit page mentioned that ‘Javascript may not be the best way to password-protect a webpage, but for those who do not have access to a CGI-BIN, it may very well be the only way… and will keep out at least the average surfer’. So there it is. It is up to you to decide whether this suits you or not.

    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

    Passworded Website

    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.

  2. Alex House
    June 11, 2011 at 11:19 am

    If you made the website yourself, you can program in password-protection, using PHP. You can also use JavaScript if PHP doesn't sound good, or any of the other server side languages like ASP or even Perl.

    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).

  3. Baba
    June 11, 2011 at 10:15 am

    you could do a php login procedure similar to those found in forums, check google or youtube