How to use GFW to stop DDos attacks from China

It’s a easy approach to protect your website.
But it will block any request from China.
So please remove it after the attack.

<?php
if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) {
 header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui');
 exit;
}
?>

If you are in China, you may wish to visit http://vii.im/gfw-test.php to test.

From: http://vii.im/articles/639.html

Over!

3 thoughts on “How to use GFW to stop DDos attacks from China”

Leave a Reply

Your email address will not be published. Required fields are marked *