This document outlines a project to create a basic password protected website using PHP and HTML. It describes creating a login page that asks for a user's name and password, which would be hardcoded. Upon correct login, a protected page would display the user's name, a welcome message, and sample protected content. This page would include a logout link. Bonus features include protecting multiple pages with the same password, allowing name changes, and tracking failed logins. The document provides hosting options for code submissions.
2. Overview
Use PHP and HTML
Optionally, spice it up with CSS
Create a password protected page
Password is set by you
Store the users name as well
3. The Login Page
Asks for their name
E.g. Marcus, Bob, Lynda
Asks them to supply the password
You will hardcode the password and match it
against the one they supply
4. The Protected Page
Assuming the password they supplied
was correct
Show the name they entered
Show some kind of welcome message
Make up some content that would be
considered protected
E.g. Fake salary report, Fake bank
statement, etc
5. Protected Page Continued
Have an option for the user to logout
This option should be an HTML link and
not a form.
So you should be using a GET request here
Make sure they are logged in first to logout
6. Bonus Points
Have multiple pages that are protected
by the same password
Allow the person logged in to change
their name
Count the number of times they failed to
login
If that count is greater than a certain
number, dont allow them to login even if
they get the correct password
7. Where do I host the code?
If you are submitting one file you can
use any simple paste website such as:
http://pastebin.com
http://codepad.org
http://viper-7.com
Multiple files?
http://gist.github.com
Or post a comment with all the files hosted
on one of the above paste websites
8. Where do I submit the links?
You can post them on the Reddit post
You can email them to me
recck@ureddit.com
You can post them on the Google Group
Discussion board
You can private message me on Reddit
Username: womg