Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
simple db lookup for user's IP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
ip-lookup-db.php

README

Checks the user's IP against a DB and if there was an entry of the IP in the DB, return true.

Originally used in an environment for a VPN site - to show their users were secure.


Make sure to edit the file to reflect your SQL setup.
You need a MySQL DB called "ipdb" (or you can edit the file and make it whatever you want), a table in that called "iptable" and at least one IP row in that.

May or may not work without adaptation - sensitive info had to be removed from the original file.
Something went wrong with that request. Please try again.