You create your website on the Internet so that your content is available to the world, right? But this does not always mean that you want to show the whole world absolutely all the content. What if you want to restrict access to certain sections of your site?
In today’s article we will review the WordPress plugin Password Protected Categories which can hide and restrict access to certain sections of the site.
With the Password Protected Categories plug-in, you can set a password for accessing some or all of the headings of your site on WordPress. Restrictions apply not only to standard WordPress categories, you can also close access to individual taxonomies created by custom types of records.
And to unblock access you can give your visitors passwords. Depending on the password entered, each user will have access to a specific section or site heading. Sounds interesting, right?
What can I block with Password Protected Categories?
Since Password Protected Categories can block access to the headings of any type of records, you have a lot of options open, as this can be put into practice.
Virtually every WordPress plugin creates its own content type and its custom type of records, which means that you can block absolutely any content that uses such a thing as Categories (Categories).
Here are some examples of what you can block through Password Protected Categories:
- Headings of entries on the blog
- Categories in portfolio
- Separate headings of task schedulers (Events Calendar Pro, Events Manager, Event Espresso)
- Easy Digital Downloads section
- Access to sections of electronic catalogs and shops
Working with Password Protected Categories
Despite its flexibility and versatility, the plugin is very easy to configure and use. After installation and activation, go to the Settings → Protected Categories section and select which categories you want to block with the password.
Here are the settings you need to do:
- Select the page with which users will be logged in and enter a password for access to the closed sections. You can also configure via shortcode.
- Configure authorization form, button and message
- Choose whether to show / hide from the search results of the site closed headings, until the user enters a password. After entering the password, all the closed sections will automatically appear in the search on the site and in the navigation menu sections of the site.
- Select how long the user can view private strips and headings after entering the password.
When you configure the plugin, users will see something like this when attempting to enter a closed section:
If you want to configure this page and authorization form more carefully, you will have to use shortcodes. With a shortcode, you can add an extra field or text above or below the password entry form.
How to set a password for the site headings?
It’s all simple. To manage your categories, you still need to go to the menu Entries → Categories .
At the bottom of the page you will see a form for restricting access to the heading. You can choose:
- Public – available to all
- Password protected – access with a password (you can set several passwords)
- Private – available only for administrator and site editor.
Please note that each password is bound to the restriction of its heading. This gives you the ability to open one or the other for the user, depending on which password was entered.
Also keep in mind that after opening access to a certain category, the user automatically gets access to all the nested headings of this rubric.
How to close access to the categories of custom types of records?
Everything is the same as for normal categories. If you have, say, a custom type of record Test Post Type and you added a section to it ( Test Taxonomy ), then when you go to this section, you are exactly the same You can restrict access to it at the bottom of the page:
Indexing by the search engines of the closed headings of the site
It’s important to note that the Password Protected Categories plug-in automatically adds the noindex tag for locked headings and all posts in these categories, so search engines will not index these headings.
In other words, you will not see a link to your private posts in private columns in Google’s SERP.
Price and Support
The Password Protected Categories plugin costs $ 55. For this amount you get the plug-in itself with a license for 1 site with technical support and updates for 1 year.
If you do not extend support for the next year, you will be able to use the plugin further, just without new updates.
Password Protected Categories is a very simple plug-in that can do 2 things:
- To close the access to the Subjects for any type of posts
- Make the Headings private for access only by site administrators and editors