Feb 062012

There is a WordPress feature that saves automatically review our article in order to avoid accidental loss of our content. These revisions allow us to recover previous versions of our post but of course they’re going to weigh down, albeit slightly, our database. Sometimes
Solutions to change it:

Change the settings to our revisions is very simple, just add one line of code to our wp-config.php file located in the root of our site. The possibilities for change are:

Change the interval that elapses between a self-rescue and the other, 3 minutes in our case:
1 define (‘AUTOSAVE_INTERVAL’, 180), / / every 3 minutes

Specify the maximum number of revisions you want to save, in the case where 5 is the number of revisions allowed:
1 define (‘WP_POST_REVISIONS’, 5);

Completely disable the Revision of the post:
1 define (‘WP_POST_REVISIONS’, false);

Of course if you want the options togheter will add the lines you need. For Example:

define (‘AUTOSAVE_INTERVAL’, 600), / / every 10 minutes;

define (‘WP_POST_REVISIONS’, 5);/ / will limit the revisions to 5

Jun 112009

This days I am dealing with some infected files in my sites. I have seen thet this bot is inserting two iframes in files containing in their name “index”,”default” or “home”. On this blog the files infected was /index.php, /wp-admin/index.php, /wp-admin/index-extra.php, wp-includes/default-filters.php and /wp-content/themes/../index.php . All this files were containing the two iframes pointing to the two .cn sites. Looks to be a vulnerability on the server as far as all sites hosted at the same IP were modified.

So the fastest method to repair is replacing the infected files containing the malicious code inside with some clean files from default installation or open with an editor and clean manually. After it, has to be secured the website by adding a .htaccess file with the rules to block the malicious visitors and of course install some useful plugins as firewall and file monitor.

The plugin WordPress-Firewall is available to download here

Later on I will post a model of a .htaccess file

Apr 032009

Here is a list with few sources of spam comments. This list can be used with the plugin WP-Ban