Mobile and web design development (Android, iPhone, WordPress)
Google+TwitterLinkedinFacebook
Subscribe
HomeWordPressHow to secure your Wordpress blog by setting up SSL

How to secure your WordPress blog by setting up SSL

The latest (from version 2.6) version of WordPress has support for making the admin section of your WordPress site use SSL or Secure Sockets Layer. This means that you’d be able to encrypt your admin pages if you want to.

Encrypting the admin pages provides more security for your WordPress site. In order to enforce SSL in your admin pages you need to do things a couple of things.

Step 1. Install an SSL certificate on your web site. Note that in order for SSL security to work you will need to have a dedicated IP address for your WordPress site. You should ask your hosting provider on how you can get a dedicated IP address and how to install an SSL certificate.

Step 2. Once you’ve got SSL working for your WordPress site, you will need to modify your wp-config.php file. You need to include the following:

define(‘AUTH_KEY’, ‘the auth key’);
define(‘SECURE_AUTH_KEY’, ‘the secure auth key’);
define(‘LOGGED_IN_KEY’, ‘the logged in key’);

You need to get your personal the three lines of code above from http://api.wordpress.org/secret-key/1.1/ and insert it into your wp-config file.

The other two lines of code you need to insert in your wp-config.php file are:

define(‘FORCE_SSL_ADMIN’, true); // put this if you want your whole admin site to use SSL
define(‘FORCE_SSL_LOGIN’, true); // put this if you want just the login page to use SSL

FORCE_SSL_ADMIN would be the best security but a lot of plugins hasn’t cope up with the required changes to fully support SSL in their plugins. You can check if the plugins you use support SSL by the warnings that your web browser will give you once you enable it and login to your admin page.

FORCE_SSL_LOGIN only encrypts the login page so that your login password will be encrypted.

Once you’ve included those lines of code, you’re now ready to use SSL on your WordPress blog.

Responses

  1. scotty777 says

    Great post. Since a year has gone by since written, I am wondering if there has been any new information. For instance, once the above edits are made, and “Once you’ve included those lines of code, you’re now ready to use SSL on your WordPress blog.” I wonder just how in fact you are using it ? What are the steps to secure a single page, like a contact us form ?? Also… is it working under WP 2.8.5 +

Leave a Reply

  • Hi, I'm Gerry. Welcome to my blog and sites about mobile, technology, The Pinoy, #crazyidea, games, WordPress, Ubuntu, Mac, iOS, Android, Symbian... I started sites like Ortigas Online and iMakati which focuses on local community information. Read more about Gerry
    Status (Twitter, Linkedin, Facebook...)

    Just found out that the Android-based HTC Sensation XL phone is now in the Philippines for about Php 28,000.

  • Visit my other sites

    • Gerry

      My blog about the Philippines, mobile, technology, games, mac, linux...

    • Apps & Games

      Reviews, news of mobile apps & games for Android, iOS, Blackberry, Symbian...

    • Connected Phone

      The computer is the mobile phone. The always connected phone evolution.

    • Pinoy Me

      Pinoy businesses, enterprises, startups, professionals all over the world

    • Java Midlet

      Java mobile apps & games - news, reviews, tips, mobile phone & devices

  • PINOI Sites

    Are you interested in putting up your own PINOI-enabled local community site? Contact me

    • PINOI

      Enabling local communities on the Internet

    • Makati

      iMakati.com is a site that provides information about Makati City.

    • Ortigas

      Community site that provides information about the Ortigas Center.