Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Block Bad Queries
- */
- if (strlen($_SERVER['REQUEST_URI'])>255 ||
- strpos($_SERVER['REQUEST_URI'],"eval(") ||
- strpos($_SERVER['REQUEST_URI'],"base64")) {
- @header("HTTP/1.1 414 Request-URI Too Long");
- @header("Status: 414 Request-URI Too Long");
- @header("Connection: Close");
- @exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement