Fantastic snippet from Perishable Press this snippet is great for security protecting wordpress against malicious URL requests. But even better this is now available as a plugin so grab the Free or Pro version. This will examine all incoming traffic and quietly block bad requests containing nasty stuff like eval(, base64_, and excessively long request-strings. You can view the free version in the WordPress plugin repository and a Pro version from plugin-planet.com.

About wpsnipp

WPSNIPP Was founded in 2010 by Kevin Chard and is a free resource dedicated to WordPress covering a wide range of topics. With over 640+ WordPress snippets, we also have tutorials, plugins, gallery and deals to enhance all aspects of your WordPress theme or blog.