Stay Connected

PERSONAL BLOG

How to Protect WordPress Pages, Posts With Password

There may come a time when you want to password protect a WordPress page, post or product. Maybe you want only your family and friends to read a blog post or allow certain clients to access a product for purchase. No matter your reason, luckily, WordPress has you covered.

This article will show you how to password protect WordPress pages, posts or products, as well as give plugin suggestions for additional content protection needs.

Using Default WordPress Functionality

For the simple functionality of password protecting a page, post or product, WordPress makes it as easy as updating a setting within the respective page, post or product. The below instructions can be used for all three of the aforementioned website elements.

  1. Login to WordPress.
  2. Navigate to the edit screen of page, post, or product you want to password protect.
  3. In the right-hand sidebar, click on Visibility>Password Protected.
  4. Enter the password you want appropriate parties to use to access the content.
  5. Click Publish or Update to save the change.
Password protect a page, post, or product in WordPress

Plugins for Additional Password Protection 

With the help of 3rd party plugins, you can also password protect particular content within a post, an entire category, or your full website. All of the below plugins are free and can be easily downloaded and installed through your WordPress dashboard.

  • Password protect particular content within a post or page with Passster. By using a simple shortcode, you can lock content within a post or page and is unlocked via the password you create. You can also add a captcha and customize the area with the WordPress Customizer.Password protect wordpress content within a post
  • Password protect an entire category with Access Category Password. The plugin gives you the ability to restrict posts within a category, replacing the content with a form end-users can fill out to gain access. You can also choose between session or cookie authentication, allow certain user roles to access the content without the password, and more.
    Password protect WordPress blog categories
  • Password protect your entire website with Password Protected. The plugin allows you to place your website behind a gate accessible with a single password.
    password protect your entire wordpress website

Of note, most of the above methods only lock WordPress generated content. This means that uploaded files like images or PDFs will still be accessible if exact URLs are searched.

Adnan Sattar

A self-driven productive Software Engineer who thrives in highly pressurized and challenging working environments by constantly improving skills. Eager to grasp new ideas and concepts from the environment.

Leave a Reply

×
%d bloggers like this: