licvido/tor-ip-checker

This package is abandoned and no longer maintained. No replacement package was suggested.

Checks if given IP is coming from Tor (exit) node.

v1.1 2017-08-12 12:25 UTC

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.