/PHP-authit

Simple PHP MySQL account authentication to protect pages, includes automatic creation

Primary LanguagePHP

PHP-authit

Simple PHP with MySQL account authentication to protect pages, includes an automatic creation via a form (index.html), file cleanup and multiple methods of login protection.

Login page no captcha

Features

  1. Password hashing.

  2. Self generating captcha (optional).

  3. 5 wrong login attempts sees 10 minute cool down.

  4. Styled with Bootstrap 4.1.3

  5. Removes unwanted files depending on captcha on/off

Who is this for?

Anyone that needs an easy to install/setup login system to protect web pages such as dashboards, information pages, hubs or control panels from prying eyes.

Installation

  1. Unzip this project into your directory or sub directory of choice

  2. Have a MySQL account with database/table create ability

  3. Navigate to where you placed these files

  4. index.html should load, fill in the form and submit

  5. If done right you will be at the default login page now

  6. Use the username and password entered in the form to login

To protect pages simply put at the start of the page:

session_start();
if (!isset($_SESSION['user'])) {
    //User not logged in
    //do a redirect to login page (index.php)
} else {
    //show page stuff
}

Screenshots

Login page No captcha submitted Captcha wrong Username or Password wrong