且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用TOR客户端检查是否进行呼叫

更新时间: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());

查看全班