2017 © Pedro Peláez
 

library tor-detect

Class to determine if Remote User is using the TOR Network

image

cyberline/tor-detect

Class to determine if Remote User is using the TOR Network

  • Monday, March 20, 2017
  • by CyberLine
  • Repository
  • 4 Watchers
  • 5 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

TorDetect

Scrutinizer Code Quality Build Status SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Tor is collaborative network that allows people to access sites hiding their original IP addresses to avoid being tracked. Many sites do not like to allow accesses of users that use the Tor network, as users may use anonymous access perform illegal activities. This class provides a solution that allows to determine if an user is accessing a site using the Tor network. This allows a PHP site to disallow the user to access a site using the Tor network., (*2)

Example

<?php
require_once 'src/TorDetect.php';

try {
    $instance = \TorDetect\TorDetect::getInstance();

    // check current users ip and
    // return 1 or 0
    print intval($instance->isTorActive());

    // check ip of another user
    print intval($instance->setTarget('1.2.3.4')->isTorActive());
} catch (\Exception $e) {
    print $e->getMessage();
}

The Versions

20/03 2017

dev-master

9999999-dev https://github.com/CyberLine/TorDetect

Class to determine if Remote User is using the TOR Network

  Sources   Download

proprietary

The Requires

  • php >=5.3.0

 

by Alexander Over

20/03 2017

v1.2

1.2.0.0 https://github.com/CyberLine/TorDetect

Class to determine if Remote User is using the TOR Network

  Sources   Download

proprietary

The Requires

  • php >=5.3.0

 

by Alexander Over

27/11 2014

v1.1

1.1.0.0 https://github.com/CyberLine/TorDetect

Class to determine if Remote User is using the TOR Network

  Sources   Download

proprietary

The Requires

  • php >=5.3.0

 

by Alexander Over

14/11 2014

v1.0

1.0.0.0 https://github.com/CyberLine/TorDetect

Class to determine if Remote User is using the TOR Network

  Sources   Download

proprietary

The Requires

  • php >=5.3.0

 

by Alexander Over