Simon Morley

I like cats, my plants and the Internets. I can't be bothered to make this blog pretty. I write code. What do you do?

Main menu

Skip to primary content
Skip to secondary content
  • Home

Category Archives: Wordpress

Force SSL logins to WordPress Admin

Posted on January 31, 2011 by Simon Morley
Reply

Here’s a quick tip to force SSL (encrypted) logins to the WordPress admin pages. We use a few techniques, including this one, to ensure we don’t wake up one morning to find someone’s hacked any of our hosted WP sites…

Find and edit the wp-config.php file (usually in the root of your WP folder). Add the following lines:

define('FORCE_SSL_LOGIN', true);

define('FORCE_SSL_ADMIN', true);

Restart your webserver and off you go. Just make sure you’ve got your SSL virtual hosts and a certificate set up first. We don’t tend to bother with properly signed certificates as self-signed ones do just fine for non-public facing sites.

There’s a few plugins available to do the same but we usually keep the number of plugins enabled to a minimum as they can slow down your server. Editing a bit of code’s not too hard is it??

Tweet
Posted in Web Development, Wordpress | Tagged security, ssl admin, ssl login, Wordpress | Leave a reply

Archives

  • January 2012
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • March 2009
  • January 2009

Meta

  • Log in
Proudly powered by WordPress

Switch to our mobile site