Securing WordPress – Part III | ![]() |
Posted: 03 Feb 2013 01:36 AM PST Securing FilesOne of the most confusion areas for newbies to secure is file permissions and ownership. For each file there is an owner and a group. So each file has permissions set for the owner, the group, and all (everyone else). There are four permissions possible with numerical values:
Permissions are cumulative for each: owner, group, all. The final permission number is composed of three digits, corresponding to each of these. So a permission of 640 means owner=6, group=4, and all=0. The owner is allowed to read and write to the write. The group can only read the file, while everyone else is prohibited from doing anything at all with the file. Permission of 755 allows the user to read, write, and even execute the file. The group can read and execute the file, as can everyone else. You can begin to see how important file permissions are to security. Your root directory where WordPress is installed should be locked down. Only the user should be able to write to it. Other directories that should have the same 644 strict limitations are:
When it comes to the /wp-content directory, though, 755 is the most permissive you should get. Wp-config.php should be assigned 600 for complete security. Your wp-admin section is so important that you should take advantage of any additional methods for securing it against intrusions. You might try to password protect it through cPannel in the Security section. That means you will also need to do a tiny bit of Apache work in order to keep the Ajax working on the front end of the admin. Add the following to the .htaccess file in /wp-admin <Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files> In your main WordPress .htaccess file you should add this line to prevent 404 errors or too many redirects from occurring:
|
You are subscribed to email updates from Tips Blogger To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 comments:
Post a Comment