利用功夫网来防止来自中国的DDOS攻击
Posted by Cat. on November 8, 2010
功夫网终于有贡献了..
不过可能会有副作用,就是连自己的网站都给功夫网封了...
下面是php代码..
<?php
if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) {
header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui');
exit;
}
?>
if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) {
header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui');
exit;
}
?>
演示:http://vii.im/gfw-test.php
Filed in: Linux
16

