Skip to content

Instantly share code, notes, and snippets.

@KidFeng
Created December 24, 2010 10:48
Show Gist options
  • Save KidFeng/754105 to your computer and use it in GitHub Desktop.
Save KidFeng/754105 to your computer and use it in GitHub Desktop.
How to use GFW to stop DDoS attacks from China
<?php
if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) {
header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui');
exit;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment