Skip to content

cannongoesboom/access_by_ip_only_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP-Restricted PHP Project

This project restricts access to all pages unless the user’s IP exists in the allowed_ips MySQL table.

Install

  1. 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;

About

Block any user from your site by allowing approved IP address only in MySQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages