块TOR服务器 [英] Block TOR Servers

查看:191
本文介绍了块TOR服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个脚本块 PHP Tor服务器 ...我需要得到服务器的列表并阻止他们。

I need a script that blocks TOR servers in php ... I need to get the list of servers and block them.

或者说,任何解决方案在服务器上安装(CentOS的)。

Or, any solution to install on the server (centos).

推荐答案

下面是关于着TorDNSEL <获得更多的信息href=\"https://www.torproject.org/projects/tordnsel.html.en\">https://www.torproject.org/projects/tordnsel.html.en以及如何构造查询。

Here is more information about TorDNSEL https://www.torproject.org/projects/tordnsel.html.en and how to structure query.

和下方是功能上的我可以执行动态检查发现净

And below is function I found on the net that can perform dynamic checks.

https://check.torproject.org/ 必须使用类似这样的东西)。

( https://check.torproject.org/ must use something similar to this ).

我不知道下交通拥挤的性能。

I am not sure about performance under heavier traffic.

function IsTorExitPoint(){
if (gethostbyname(ReverseIPOctets($_SERVER['REMOTE_ADDR']).".".$_SERVER['SERVER_PORT'].".".ReverseIPOctets($_SERVER['SERVER_ADDR']).".ip-port.exitlist.torproject.org")=="127.0.0.2") {
return true;
} else {
return false;
} 
}
function ReverseIPOctets($inputip){
$ipoc = explode(".",$inputip);
return $ipoc[3].".".$ipoc[2].".".$ipoc[1].".".$ipoc[0];
}

这篇关于块TOR服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆