In early September, many WordPress websites have been contaminated with Malicious codes. We wrote a fast repair for that situation which you'll see in this post, however lately Jeff Starr from Perishable Press has include an answer to guard WordPress from future assaults as effectively.
Merely open a brand new php file and paste the next codes:
<?php
/*
Plugin Title: Block Unhealthy Queries
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/
Description: Shield WordPress Towards Malicious URL Requests
Writer URI: http://perishablepress.com/
Writer: Perishable Press
Model: 1.zero
*/
international $user_ID; if($user_ID) ?>
Codes up to date on Jan. 10, 2010.
Save this file and add it in your plugin listing /wp-content/plugins/ and your work is completed. This script will examine for lengthy strings in addition to base64 code which was within the final assault and the eval( code which could possibly be a menace sooner or later.
As soon as energetic, this plugin will silently and successfully shut any connections for these types of injection-type assaults.
Supply: Perishable Press