Jesin's Blog

Welcome to the Portal of Technology

  • Facebook
  • GitHub
  • RSS
  • Twitter
  • Home
  • Categories
    • Domains
    • Linux
    • Networking
    • PHP
    • Virtualization
    • Web Design
    • Web Servers
    • Windows
  • WordPress Plugins
    • Custom Error Pages
    • HTTP Digest Authentication
    • Mailgun Email Validator
  • Toolbox
    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool
  • About Me
  • Contact Me
  • Sitemap
Home ›
WordPress Plugins ›
HTTP Digest Authentication

HTTP Digest Authentication

http digest authentication banner

Download Plugin
WordPress.org Plugin Page

This plugin will protect your wp-login.php login page using HTTP Digest Authentication and the best part is that it works with all web servers and doesn’t require modification of .htaccess or any other server configuration file.

Why use HTTP Digest Authentication?

  • Basic Authentication credentials are base64 encoded and sent over the network like this – amVzaW46c2VjcmV0. A base64 decoder is enough to find out what lies inside.
  • Digest Authentication credentials are encrypted with MD5 so a response looks like this – fccbc307ac95cd2caa4ce6bd23633f29
  • A nonce is generated during each authentication so for the same pair of credentials you may see very different responses like 39fe1ee757d34426b635406c812f4a0a and fccbc307ac95cd2caa4ce6bd23633f29.

Features of the HTTP Digest Authentication plugin:

  •  Works out of the box and doesn’t require modification of service config files like .htaccess, nginx.conf
  •  Supports HTTP credentials for each WordPress user
  •  Clears the HTTP Digest credentials when the user logs out of WordPress
  •  Verifies if both the HTTP and WordPress credentials are of the same user
  •  Works on all major Web Servers (Tested on Apache, Nginx and Lighttpd)

Usage

Install this plugin and activate it. Once activated all existing users will have HTTP credentials as follows

Username: <WordPress username>

Password: password

Each user can change this by going to their Users > Your Profile. Users who register or are added through the administration panel will also have the same default credentials.

I forgot my HTTP digest username

Use the following MySQL query to find it out.

SELECT meta_value FROM `wp_usermeta` WHERE meta_key = 'http-digest-auth_username' and user_id = (SELECT ID from wp_users where user_login = 'WordPress_Username');

Replace wp_ with your database prefix and use you actual WordPress login username.

I forgot my HTTP digest password

Use the following MySQL query to reset it to ‘secret’.

UPDATE `wp_usermeta` SET meta_value = 'password' WHERE meta_key = 'http-digest-auth_password' and user_id = (SELECT ID from wp_users where user_login = 'WordPress_Username');

Login and change your password immediately.

Screenshots

http digest authentication login
The HTTP digest authentication prompt displayed by the browser when accessing wp-login.php
http digest authentication wp login
The wp-login.php page will display the HTTP Digest username. It also displays a logout link which logs out the HTTP user.
http digest authentication your profile
Change your HTTP username/password by going to Users > Your Profile
http digest authentication logout
When you logout of WordPress you’ll be taken to this screen. Clicking “Login Again” will prompt for HTTP credentials before wp-login.php.

Download Plugin

Get a wealth of information delivered to your inbox. Subscribe and never miss a single article.

  • Tutorials and howtos
  • Code, scripts and commands
  • Online Tools

* No spam, unsubscribe anytime

Hire Me

  • SSL installation and hardening (A+ on Qualys SSL test)
  • Apache & Nginx configuration
  • Email deliverability improvement (10/10 on Mail Tester & MailGenius)
  • WordPress customization, optimization and migration
  • and much more…

    Tools

    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool

    Nav

    • Home
    • About Me
    • Contact Me
    • Privacy Policy
    • Sitemap
    Vultr SSD VPS

    Creative Commons License
    Jesin's Blog by Jesin A is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
    Based on a work at websistent.com.