Share Pastebin
Guest
Public paste!

_ck_

By: a guest | Sep 5th, 2009 | Syntax: PHP | Size: 0.33 KB | Hits: 848 | Expires: Never
Copy text to clipboard
  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. ?>