更新时间:2021-09-06 22:50:26
类可能只是你需要..它检查 ip-port.exitlist.torproject。 org
在DNS信息中,并确定用户是否使用Tor网络访问站点。
The Class might be just want you need .. it check for ip-port.exitlist.torproject.org
in DNS information and determine if an user is accessing a site using the Tor network.
示例
$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());