Some plugin desapeared to your WordPress installation? Some hacked thing? No problem, if you fix the file permissions on your files you will harden your site.

 

Fixing ‘.htaccess‘ & ‘wp-admin/index.php

First of all, we must verify the permissions of ‘.htaccess‘ and ‘wp-admin/index.php‘. They cannot be writable except for the user. The correct permission for them is 644.

644

644 permissions explained

Fixing the rest of installation

Now we fix the rest of the WordPress installation with a 755 permissions.

755 permissions

755 permissions explained

 

After that changes you can sleep better from now ;-)