SHARE
TWEET

_ck_

a guest Sep 5th, 2009 1,110 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top