Skip to content

Instantly share code, notes, and snippets.

@dfsmirnov
dfsmirnov / TorDetector.php
Last active March 16, 2017 09:08 — forked from jeroenvisser101/TorDetector.php
Detecting people that use Tor
<?php
/**
* Class TorDetector
*
* Helps to detect if visitors are using a Tor browser to surf the website.
*
* Thanks to https://trac.torproject.org/projects/tor/wiki/doc/TorDNSExitList
*/
class TorDetector