Home arrow Site Administration arrow WordPress Security Tips

WordPress Security Tips

As of 2011, WordPress is still the most popular blogging software for websites. Due to the number of users and popularity of WordPress, it is also the most attacked blogging platform. You might hear a lot about “hacked” WordPress websites on the Internet. There are a lot of WordPress security guidelines being released. This article will examine some basic and standard tips that can still be applied today. If you are a WordPress user and a webmaster, then this guide will definitely be helpful to you.

TABLE OF CONTENTS:
  1. WordPress Security Tips
  2. Tip 4 Encrypt Your WordPress Login
By: Codex-M
Rating: starstarstarstarstar / 3
January 26, 2011

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Tip 1: Secure Your Admin Directory

This is an old tip, but it's surprising how many WordPress blogs -- even the popular ones -- do not secure their admin directory. Bear in mind that an insecure admin directory is susceptible to any form of public attack. These include brute force and other malicious cross side scripting attacks or vulnerabilities that can be discovered by hackers.

This is very important. If your admin directory is secured, it is protected. A hacker may figure out a MySQL injection vulnerability in WordPress and try to extract your admin username and password, but even then, the hacker will not be able to log in to your admin directory if it is protected.

The following are the important steps you need to take to secure your admin directory.

1. Go to http://www.whatismyip.com/ and take note of your IP address.

2. Open a text editor (e.g. notepad).

3. Copy and paste the code below into the text editor:

Order allow,deny
Allow from xxx.xxx.xxx.xxx

4. Replace xxx.xxx.xxx.xxx with your IP address.

5. Save it as .htaccess

Note: The filename includes a dot sign before it.

6. Upload the .htaccess to wp-admin directory.

7. Try to check if the wp-admin directory returns a 403 forbidden: http://gsitecrawler.com/tools/Server-Status.aspx

Enter your wp-admin URL, example: http://www.example.com/wp-admin
It should return a 403 forbidden error.

If your website has more than one contributor, you will need to ask for their IP addresses and add them to the htaccess line above. For example:

Order allow,deny
Allow from xxx.xxx.xxx.xxx
Allow from yyy.yyy.yyy.yyy
Allow from zzz.zzz.zzz.zzz

Where: yyy.yyy.yyy.yyy and zzz.zzz.zzz.zzz are IP addresses of other admin panel users.

Tip 2: Never Edit the WordPress Core Files!

It is surprising that a lot of tips can still be found on the Internet that suggest tweaking the WordPress core files. This is not recommended; it will only be a security risk in the long run. If you are new to WordPress and still do not know which ones are the core files, the following list will tell you.

  1. All files inside the wp-includes directory.

  2. All files inside the wp-content directory.

  3. All wp- files in the root directory of your website (e.g wp-rss.php, etc).

One of the biggest disadvantages of editing the WordPress core files is that the functionality will not work if you update the WordPress core files. Once you have updated it, those "tweaks" won't work anymore, and you will need to edit it again.

Therefore, if you need to add some special functionality to your WordPress website, try doing one of three things instead. First, try to see if you can edit your theme files to produce that functionality without resorting to editing the WordPress core files.

Second, if editing the core files to produce that functionality seems impossible, try doing research to find a WordPress plugin that will produce the desired results. There are a lot of released and stable WordPress plugins, so it is a smart idea to search for the appropriate plugin and use it rather than resorting to editing the core files. You can start researching for plugins here: http://wordpress.org/extend/plugins/

Third, if you cannot find the plugins you need, it is time to ask for professional help from the WordPress community. Below you'll find some good links to places online where you can ask for help:

WordPress support- http://wordpress.org/support/

WordPress ideas- http://wordpress.org/extend/ideas/

Tip 3: Use the SSH protocol for downloading and uploading files

To secure your hosting server username and password, you should consider using SSH. This operates similarly to FTP, but the communication between you and the server will be entirely encrypted. Encryption means that communication cannot be compromised using the eavesdropping techniques used by hackers to extract sensitive information.

Most paid hosting accounts already include SSH as part of the package. So make sure you enable it in your hosting account. If you have problems enabling it, consult your hosting support.

Once you have enabled SSH, you can then use an SSH client to connect to the server that hosts your WordPress website. The most recommended is http://filezilla-project.org/download.php, because it is GUI-based and operates in a way similar to an FTP client.

There are a couple of things you need to keep in mind when using Filezilla. First, do not set the logon type to "Normal," as this will save your hosting password in plain text in your computer hard drive. Instead, use "Ask for password." Second, under "Server Type," make sure it is set to SFTP-SSH File Transfer Protocol.



 
 
>>> More Site Administration Articles          >>> More By Codex-M
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SITE ADMINISTRATION ARTICLES

- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: