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

24.91.240.144
58.26.62.164
59.90.248.237
60.195.251.8
62.157.119.95
63.115.180.130
67.18.131.10
71.226.77.254
76.124.146.231
81.16.86.218
81.99.182.172
83.233.30.32
83.149.85.211
84.253.90.222
91.121.31.145
91.188.161.235
95.28.37.126
99.161.121.161
121.204.0.2
121.189.14.16
122.217.38.6
123.108.66.9
128.213.48.25
142.22.186.12
147.175.96.240
147.210.36.154
148.223.208.211
168.126.28.253
173.9.33.141
174.36.168.220
174.129.131.226
174.129.182.107
192.167.112.176
200.66.106.143
200.84.3.51
208.64.96.73
212.1.246.140
221.148.247.20