Training web app for COMS W4181: Security I at Columbia University.
- The app is deployed at http://comp360.lovestoblog.com/.
- The HTTPS version of the app is deployed at https://comp360secure.lovestoblog.com/. Note that free certificates are only valid for 90 days.
You can deploy the app on InfinityFree. Once you have an account, do the following:
-
Download the files in this repo and put them into your htdocs folder on InfinityFree. This is the server.
-
Add a
config.phpfile to the htdocs directory with the following content:<?php /* Database credentials */ define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'users'); /* Attempt to connect to MySQL database */ $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } ?>
-
Look up the database credentials for
DB_SERVER,DB_USERNAME,DB_PASSWORD, andDB_NAMEon InfinityFree and change them in yourconfig.phpaccording to yours.
