• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

Increasing your WordPress Security ...

There are a number of things you can do to make your self-hosted WordPress installation that bit more secure, some of which aren’t widely advertised. Below is a list of some quick and easy options, plus a couple that need a little bit more work but are well worth the extra effort for that extra peace of mind.


1. Secret Keys

When you first install WordPress you need to edit your wp-config.php file to make sure it’s got the right information for accessing your WordPress database. As has always been the case the information in wp-config-sample.php shows you what needs to be filled in. By editing this file and saving it as wp-config.php you’ll be ready to install WordPress.

However, since WordPress 2.6 there’s been a new set of security keys which help keep your WordPress install more secure.

1.define(AUTH_KEY, put your unique phrase here);
2.define(SECURE_AUTH_KEY, put your unique phrase here);
3.define(LOGGED_IN_KEY, put your unique phrase here);
4.define(NONCE_KEY, put your unique phrase here);

If you’re not sure what to put in here, just visit the handy Secret Key Generator at wordpress.org to generate your own special lines of secrecy. Below is an example of the output which can just be copied and pasted into your wp-config.php file.

1.define(AUTH_KEY,        \_f{,Ez(@SWSTGq~]p7mMu/zsSQ9%Aj;43db|:OjWUlUFJ5Ge{u%T-dx4>u1{_szU);
2.define(SECURE_AUTH_KEY, RQT-|bmNY).USI6vo2khHm<6N!6`x/ri]g-0VNN1t^<b]seB;H*Q=..h<,F@-}% );
3.define(LOGGED_IN_KEY,   {,C+JN*x_sj:iAp3|p~a@HI0:<.KnrS(thDV*[u_kY$xbolk[aiqx${|:Y2L^+{ );
4.define(NONCE_KEY,       Ek@(Zw#<CipmijGZw67b:drxRb*JiQ#+q5bJ|5/NGeEyHGWpSB- .V1{3U_Gi80|);

I should mention, just in case, do not use this above example! Just visit the generator for your own unique code. Also, if you are interested in further reading check out the WordPress Codex article regarding wp-config.


2. Change Your Admin Password

I have talked about the importance of password security in the past and thankfully WordPress generates a fairly random password for the "admin" user when you first install it, but I feel happier by generating my own even longer password for that extra peace of mind.

Personally I use the excellent password generator that is included in our favourite password management web application - Passpack - something I strongly recommend checking out1, but there are a multitude of free password generators available. A good one I came across is www.freepasswordgenerator.com which allows you to choose whether to include string letters (a..z), capital letters (A..Z), digits (2..9), special symbols (!, +, ], ?, etc) and the length of the password. It produces wonderfully complicated things like:

    a^cYj+csV)MifQhc,66s

Again, for the sake of safety I’d suggest signing up to Passpack to store this password nice and securely. Don’t write it down!


3. Change Your Admin Username

Keeping things secure is all about making life more difficult for a potential hacker. The default username for the wordpress administrator is “admin”, and that’s a first step covered for a hacker. Whilst you can’t change WordPress usernames through the admin panel, you can change it by editing your database.

As we’re security conscious here at Pixelapes, we only access our server through “Secure Shell” meaning that any database interaction is purely command line based. Hence the below example shows you what to do to change your admin user name.

1.mysql> USE your_database_name;
2.Database changed
3.mysql> UPDATE wp_users SET user_login="new-admin-user" WHERE user_login="admin";
4.Query OK, 1 row affected (0.00 sec)
5.Rows matched: 1  Changed: 1  Warnings: 0

 Original Source:
http://www.pixelapes.com/2009/04/30/increasing-your-wordpress-security/

AddThis Social Bookmark Button

Posted at 10:49:28 am | Permalink | Posted in WordPress Security  

Related Stuff

Google Buzz Button Wordpress Plugin Released

If you are looking for a Google Buzz button to add into your Wordpress site then we have released the first Wordpress plugin exclusively ...

Plug And Play Ecommerce With Wordpress Plugins

Since 2003 Wordpress has slowly been gaining popularity amongst the elite of the internet, the bloggers. It is one of those few things ...

Add Google Search to Your WordPress Blog

The native WordPress search does not return very relevant results, thus it makes a lot of sense to add Google Search into your WordPress ...

Add More Sidebars to Your WordPress Theme

You can add more than one sidebar section to your WordPress site. For example, with the stc-intermountain.org site, I added a whole bunch ...

Series Posting in Wordpress

In my functions.php file, I have some code which implements series posting. This relies on the thematic ...

Top Stuff

Free Blogger templates Anime Themes

Wordpress Guestbook Generator Plugin

48 Unique Ways To Use WordPress

GeekLog

WordPress Single Post Templates

Get The Image WordPress Plugin



About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Search


Topics

  • Adsense (12)
  • Blogging Tips (73)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • Digg (20)
  • How to Blog (129)
  • Search Engines (9)
  • SEO (135)
  • WordPress Plugins (269)
  • WordPress Security (75)
  • Wordpress Themes (99)
  • Wordpress Tips (162)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange