vigilantor
in your /wp-content/plugins/
directoryPlugins
>> Add new
VigilanTor
and click Install Now
!This plugin detects Tor users by using a pre-downloaded list of Tor IP addresses. One nice thing about the Tor network is that it is very easy to get lists of IP addresses that allow Tor users to access the internet. When a user visits your site and tries to perform one of the restricted actions, their IP is checked against the list of known Tor exit IP addresses. If it's a match, they won't be allowed to do what they were trying to do.
Exit lists are served from these domains:
One of these lists is maintained by us. You can see the contents here. Please be kind if you choose to use it for purposes other than this plugin.You can choose to update the exit lists every 10, 20, 30, 60, 120, or 360 minutes. Updating every 30 or 60 minutes is recommended.
The real-time checking is very fast since it uses the public Tor DNS exit list service run by the Tor project. A small DNS request is sent that contains the visitor's IP address which is compared to a list of observed exit relays. The DNS request will yield a positive response from the service if the criteria matches. Since DNS uses UDP and the packets are small, this is typically a fast and efficient way to perform the check.
In order to use the optional CAPTCHA protection, first install the "hCaptcha for Wordpress" plugin and enable the "Block Tor users from all of WordPress" configuration option in VigilanTor. When a Tor user visits your site, they will be presented with a CAPTCHA challenge. After correctly solving the CAPTCHA, a session cookie will be set in the browser containing a secret token (stored in the WP database) that bypasses the Tor blocking. The cookie is saved in the database for 1 hour, and it's value is changed on each visit to prevent the cookie from being used by multiple browsers.
VigilanTor should work with PHP 5.6 or greater. It has been tested on PHP 5.6, 7.0 - 7.4, and 8.0. If you run into any problems, please report them here. This plugin is not compatible with any PHP 4 version!
non_tor_users
shortcode