PHP code example of licvido / tor-ip-checker

1. Go to this page and download the library: Download licvido/tor-ip-checker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

licvido / tor-ip-checker example snippets


// prepare ist = new ExitNodeList;
$fullNodeList = new FullNodeList;

$checker = new TorIpChecker($exitNodeList);

if ($checker->isInList($_SERVER['REMOTE_ADDR'])) {
	// TOR
} else {
	// standard way
}