Guest User

_ck_

a guest
Sep 5th, 2009
1,204
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data