PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Alexander Over   Tor   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of use
Class: Tor
Check if an IP is TOR network exit address
Author: By
Last change:
Date: 12 years ago
Size: 238 bytes
 

Contents

Class file image Download
<?php
include 'tor.class.php';

$tor = Tor::getInstance();

// check current users ip and
// return true or false
var_dump($tor->isTorActive());

// check ip of another user
var_dump($tor->setTarget('1.2.3.4')->isTorActive());