PHP Classes

UnTor: Block users to access from a network using TOR

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 456 All time: 6,119 This week: 47Up
Version License PHP version Categories
untor 1.0.0GNU Lesser Genera...5Networking, PHP 5, Web services, Secu...
Description 

Author

This class can block users to access from a network using TOR.

It can check the IP address of the current user against a list of exit node addresses retrieved from the TOR project site.

For users using TOR the class shows a page included from a separate file.

The class caches the discovered TOR exit IP addresses in a file to avoid the overhead of checking the TOR site exit address list.

Innovation Award
PHP Programming Innovation award nominee
June 2017
Number 2


Prize: One downloadable copy of PhpED Professional
The Tor network can route Internet traffic to machines via a networks of servers that encrypt communications and hide the origin of the information that is sent to servers.

The Tor network has been used to hide the identity of criminals that may access sites and abuse of their resources.

Therefore, blocking the access of users that use the Tor network may be one way to inhibit the abuse of sites by criminals and people with bad intentions.

This package can be used to detect and halt the access that of users are using the Tor network with bad intentions.

Manuel Lemos
Picture of Romeu Gamelas
Name: Romeu Gamelas <contact>
Classes: 3 packages by
Country: Portugal Portugal
Age: ???
All time rank: 248735 in Portugal Portugal
Week rank: 206 Up8 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
require("untor.class.php");
$tor = new untor();
?>
<!DOCTYPE html>
    <html>
        <head>
            <title>Alright</title>
        </head>
        <body>
            <h1>OK!</h1>
            <p>If you are seeing this page, it means you are not using a TOR proxy.</p>
        </body>
    </html>


Screenshots (1)  
  • effect.png
  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file example.php Example Example usage
Plain text file untor.class.php Class Main class
Accessible without login HTML file untor.html Data Output for TOR users

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:456
This week:0
All time:6,119
This week:47Up
User Ratings User Comments (1)
 All time
Utility:50%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:38%StarStar
Rank:3971