licvido / tor-ip-checker
Checks if given IP is coming from Tor (exit) node.
Installs: 5 013
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2022-09-07 18:20:04 UTC
README
Checks if given IP is coming from Tor (exit) node.
Installation
The best way to install Tor IP Checker is using Composer:
$ composer require licvido/tor-ip-checker
Usage
// prepare required list $exitNodeList = new ExitNodeList; $fullNodeList = new FullNodeList; $checker = new TorIpChecker($exitNodeList); if ($checker->isInList($_SERVER['REMOTE_ADDR'])) { // TOR } else { // standard way }
License
This library is licensed under the MIT License - see the LICENSE.md file for details.