Advertisement
Guest User

_ck_

a guest
Sep 5th, 2009
1,698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Block Bad Queries
  4. */
  5.  
  6. if (strlen($_SERVER['REQUEST_URI'])>255 ||
  7.     strpos($_SERVER['REQUEST_URI'],"eval(") ||
  8.     strpos($_SERVER['REQUEST_URI'],"base64")) {
  9.     @header("HTTP/1.1 414 Request-URI Too Long");
  10.     @header("Status: 414 Request-URI Too Long");
  11.     @header("Connection: Close");
  12.     @exit;  
  13. }          
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement