Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

_ck_

By: a guest on Sep 5th, 2009  |  syntax: PHP  |  size: 0.33 KB  |  hits: 866  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  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. ?>