【问题标题】:Check if call is made using TOR client [duplicate]检查是否使用TOR客户端进行呼叫[重复]
【发布时间】:2012-10-15 13:24:21
【问题描述】:

可能重复:
Block TOR Servers

我想知道是否可以查看对我的 PHP 页面的调用是否由 TOR 客户端完成(这意味着调用是通过 TOR 项目网络传入的)。 今天我调用了一堆从https://check.torproject.org/cgi-bin/TorBulkExitList.py 获取的IP 地址,但是如果我可以欺骗发送回窃取我API 的窃贼的数据会更有趣。

反正我也想不出来,有可能吗?怎么样?

【问题讨论】:

标签: php dns tor


【解决方案1】:

The Class 可能只是希望您需要.. 它会检查 DNS 信息中的 ip-port.exitlist.torproject.org 并确定用户是否正在使用 Tor 网络访问站点。

例子

$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());

See Full Class

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多