WordPress Designer Snippet: Force SSL on Login for better security
You can force WordPress administrators to login using SSL (Secure Sockets Layer). SSL is an an encryption method, you’ve probably seen the little lock that appears in the address bar of your web browser on an SSL secured web page.
Add this code snippet to your config file to force SSL on login:
define('FORCE_SSL_LOGIN' , true);
Add this snippet to force SSL on the WordPress dashboard:
define('FORCE_SSL_ADMIN' , true);