Typeprotect allows you to password-protect any of your pages.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.php
typeprotect.php

README.md

Overview

Typeprotect allows you to password-protect any of your pages with a single line of PHP code.

Site

http://preview.typebig.com/typeprotect/

Screenshot 01

Demo

http://preview.typebig.com/typeprotect/demo/

Default password is "test".

Benefits

  1. Minimal yet extremely usuable user interface.
  2. Lightweight - ~4kb
  3. Simple - one single file, no external CSS

Instructions

  1. Copy & paste typeprotect.php to your directory

  2. Open up typeprotect.php and change the value for $password to your own SHA-1 hashed password (http://www.sha1-online.com/). The default password is test, which is "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3" when SHA-1 hashed.

  3. Include the following code on the first line of the document you'd like to protect.

  4. To create a signout link, add the following line of code.

    <a href="typeprotect.php?signout=1">Sign Out</a>