This project restricts access to all pages unless the user’s IP exists in the allowed_ips MySQL table.
-
Create database:
CREATE DATABASE allow_ips; CREATE TABLE allowed_ips ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, ip_address varchar(45) NOT NULL, description varchar(255) ) engine=innodb;