{"id":171393,"date":"2018-04-02T13:00:49","date_gmt":"2018-04-02T13:00:49","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=171393"},"modified":"2018-03-28T22:27:54","modified_gmt":"2018-03-28T22:27:54","slug":"why-you-may-want-to-password-protect-your-wordpress-site","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/why-you-may-want-to-password-protect-your-wordpress-site\/","title":{"rendered":"Why You May Want to Password Protect Your WordPress Site"},"content":{"rendered":"<p>It may seem counterintuitive, but there will be times when you need to restrict access to the content on your WordPress site. You can do this through a variety of means. You can make a page private. You can set your site to \u201cnoindex\u201d. You can also <a href=\"https:\/\/wpmudev.com\/blog\/no-fail-landing-page-tips\/\" target=\"_blank\" rel=\"noopener\">create landing pages<\/a> that only select individuals are given a link to.<\/p>\n<p>But did you know you can also password protect content on your WordPress site?<\/p>\n<p>It may seem excessive to add password protection to WordPress if there are other ways to mask content on your site, but this option will come in handy under certain circumstances. Let\u2019s take a look at what those are as well as a few of the ways in which you can password protect different parts of your WordPress site.<\/p>\n<h2>9 Reasons You Might Want to Password Protect a WordPress Site<\/h2>\n<p>You might be thinking, \u201cWhat\u2019s the point in developing WordPress sites if we\u2019re just going to hide them from public view?\u201d Well, I can give you a number of reasons why WordPress developers would want to do this:<\/p>\n<p><b>1. Privacy<\/b><br \/>\nI once had a client who developed a really innovative piece of technology. However, he was in the process of securing a patent for it, so he wanted to password protect his site until it went through.<\/p>\n<p>Now, the reason he didn\u2019t just set the site to private or wait to have it built until the patent was secured was simple: he needed to be able to educate possible investors on his invention and a website was the best way to do it. So, once they signed an NDA, he could grant them a temporary password that gave them 24-hour access to explore the site.<\/p>\n<p><b>2. Exclusivity<\/b><br \/>\nWhile you might not run into this often or at all as a WordPress professional, people who create websites for personal reasons or a highly contained audience may want it to be totally exclusive to that group. Think of like a site built for friends or family to gather, share pictures, and communicate.<\/p>\n<p><b>3. Paid Privilege<\/b><br \/>\nThis is basically when you create an area on your site that can only be accessed by paying members. You\u2019ve seen this with <a href=\"https:\/\/wpmudev.com\/\" target=\"_blank\" rel=\"noopener\">WPMU DEV<\/a>. You may have also experienced this if you joined an exclusive gym or spa. They usually have special areas on the site where you can explore and sign up for their services, classes, etc.. Basically, if you have a reason for a members-only area of the site, you need to password protect it.<\/p>\n<p><b>4. Restricted Events<\/b><br \/>\nNot every page on a WordPress site needs to be shared with the public, especially if it gives users access to privileged information. With this kind of reasoning, you\u2019ll usually have to password protect things like landing pages for exclusive events or a page containing special downloadable content offered to those who attended an invite-only webinar.<\/p>\n<p><b>5. Sensitive Content<\/b><br \/>\nFor bloggers that write content not suitable for all audiences, they can password protect certain posts. This may be because it covers something inappropriate for a younger audience or maybe they\u2019re not ready to share something new they\u2019ve written with everyone.<\/p>\n<p><b>6. Educational Environment<\/b><br \/>\nThere may be some educational materials, resources, forums, etc. that you want to restrict access to on a WordPress site. Let\u2019s say you\u2019ve built the site out for a teacher or a class, but want to ensure that outsiders aren\u2019t able to access the proprietary materials. Your clients can give out passwords to students in order to keep their content reserved for those it belongs to.<\/p>\n<p><b>7. Internal Communications<\/b><br \/>\nFor WordPress websites built for private company operations and communications, you may find it beneficial to make the entire site password protected or to block off certain areas based on individuals\u2019 roles within the company. You could also use this on a regular company website to restrict access to an employee portal where team members can go to check job-related notices, reminders, events, etc.<\/p>\n<p><b>8. Private Sales<\/b><br \/>\nThis one is for artists and photographers (and maybe even web developers if you flip websites) who create content and need a secure place to upload and share it with clients.<\/p>\n<p>Take for instance, a photographer who shot a wedding. He or she doesn\u2019t want to force the client to view thousands of photos on some random cloud storage site as they would prefer they still receive the fully branded experience. So, they share the content with the client through a password protected area of their site. They can even add a purchase button there, so clients can go ahead and buy the photos immediately upon approval.<\/p>\n<p><b>9. NDA Restrictions<\/b><br \/>\nAs a WordPress developer, it probably won\u2019t be all too often you run into a client who requires you to sign an NDA. In the example of the inventor I mentioned above, we did have to sign one, which also meant we were not able to use his web designs in our online portfolio.<\/p>\n<p>However, let\u2019s say you have a looser NDA agreement with a high-profile client with a super recognizable name. You would love to use screenshots of their website to demonstrate to prospective clients how you were able to take an already top-ranking WordPress site from great to amazing\u2026 but they don\u2019t want it to be publicly available on your site.<\/p>\n<p>In this case, I say it never hurts to ask. See how the client feels if you suggest locking their website behind password-protected gate in your portfolio. That way, you can still benefit from showing off the work you did on their site, but it will only be to prospective clients you deem necessary to show it to.<\/p>\n<h2>How to Password Protect Content on Your WordPress Site<\/h2>\n<p>Whatever your reason for hiding your site or pages of your site from general access, you should know how to use password protection to control visibility. The first place to start is by figuring out what exactly you want to restrict access to:<\/p>\n<ul>\n<li>A single post or page?<\/li>\n<li>An entire category?<\/li>\n<li>The whole website?<\/li>\n<\/ul>\n<p>There are ways in which you can password protect each of these. Let\u2019s start with WordPress\u2019s built-in password protection feature:<\/p>\n<h3>WordPress Visibility Settings<\/h3>\n<p>This is what the standard Publish box looks like for your Posts and Pages in WordPress:<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Post-Visibility.png\" alt=\"Password Protect - Post Visibility\" width=\"600\" height=\"244\" \/><figcaption class=\"wp-caption-text\">Default Publish settings in WordPress.<\/figcaption><\/figure>\n<\/div>\n<p>This is what it looks like when you open up the Visibility settings:<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Password-Protect-Post.png\" alt=\"Password Protect - Password Protect Post\" width=\"600\" height=\"378\" \/><figcaption class=\"wp-caption-text\">Expanded Visibility settings in WordPress.<\/figcaption><\/figure>\n<\/div>\n<p>Here is what it looks like on the front end of WordPress with the password in place:<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Post-Protection.png\" alt=\"Password Protect - Post Protection\" width=\"600\" height=\"265\" \/><figcaption class=\"wp-caption-text\">This is what WordPress&#8217;s password protection looks like on the front end.<\/figcaption><\/figure>\n<\/div>\n<p>This is a very simple way of adding password protection to full pages, posts, and even products in WordPress. Let\u2019s look at some other options that give you more control over how these password protection rules apply.<\/p>\n<h3>Password Protect the Root Directory<\/h3>\n<p>If you want to trigger a password request for anyone who tries to enter your site (including search engines), you can do so by adding password protection to your root directory. In the <a href=\"https:\/\/wpmudev.com\/blog\/stop-google-indexing\/\" target=\"_blank\" rel=\"noopener\">How to Stop Google from Indexing Your Site<\/a>, you\u2019ll find the play-by-play on how to execute this directive under #2.<\/p>\n<h3>Password Protected Plugin<\/h3>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Password-Protected-Plugin.png\" alt=\"Password Protect - Password Protected Plugin\" width=\"600\" height=\"193\" \/><figcaption class=\"wp-caption-text\">The free Password Protected plugin for full site protection.<\/figcaption><\/figure>\n<\/div>\n<p>The <a href=\"https:\/\/wordpress.org\/plugins\/password-protected\/\" rel=\"noopener\" target=\"_blank\">Password Protected plugin<\/a> allows you to put password protection over your entire website without having to go into your web hosting or control panel to do so. It\u2019s easy to install and gives you just a small handful of options to choose in terms of who will see the password request screen.<\/p>\n<h3>Password Protected Categories Plugin<\/h3>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Password-Protected-Categories-Plugin.png\" alt=\"Password Protect - Password Protected Categories Plugin\" width=\"600\" height=\"233\" \/><figcaption class=\"wp-caption-text\">The premium Password Protected Categories plugin.<\/figcaption><\/figure>\n<\/div>\n<p>The <a href=\"https:\/\/barn2.co.uk\/wordpress-plugins\/password-protected-categories\/\" rel=\"noopener\" target=\"_blank\">Password Protected Categories plugin<\/a> is a premium WordPress plugin you can use to block entire categories of content on your site. This is a good in-between solution if you don\u2019t want to block all users from your website, but still need something more expansive.<\/p>\n<p>Think about how much work it would take to go page by page, adding a new password to any content you want restricted. That would be incredibly labor-intensive and could also be problematic if users have to type in a new or different password each time. Just use this plugin instead.<\/p>\n<h3>WP-Members Membership Plugin<\/h3>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-WP-Members-Membership-Plugin.png\" alt=\"Password Protect - WP-Members Membership Plugin\" width=\"600\" height=\"193\" \/><figcaption class=\"wp-caption-text\">The free WP-Members Membership plugin to create gated content.<\/figcaption><\/figure>\n<\/div>\n<p>A membership website is technically a type of password protection you can use on WordPress websites. The main difference is that users create their own custom login and password so that, once they\u2019ve paid, they can gain access to your content. If you want to restrict access to content based on who is logged in with a password that still motivates users to sign up for an unpaid membership, you can use <a href=\"https:\/\/wordpress.org\/plugins\/wp-members\/\" rel=\"noopener\" target=\"_blank\">WP-Members Membership plugin<\/a>. This is an especially good choice if you have premium content you want to use as a carrot-on-a-stick to generate more leads on your site.<\/p>\n<h3>Password Protect Plugin by WPMU DEV<\/h3>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption alignnone\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2018\/03\/Password-Protect-Password-Protect-Plugin.png\" alt=\"Password Protect - Password Protect Plugin\" width=\"600\" height=\"320\" \/><figcaption class=\"wp-caption-text\">The Password Protect plugin from WPMU DEV.<\/figcaption><\/figure>\n<\/div>\n<p>Finally, we have the <a href=\"https:\/\/github.com\/wpmudev\/protect-selected-content\" rel=\"noopener\" target=\"_blank\">Password Protect plugin<\/a> by WPMU DEV. Of all the options mentioned here, this plugin is the only one that will give you granular control over password protecting individual pieces of content within a page or post. It also doesn\u2019t require users to become subscribed or paying members to access it either; they just need the password.<\/p>\n<p>Using this plugin is really easy, too. Let\u2019s say you want to prevent certain users from watching a video embedded in one of your posts. All you need to do is highlight the piece of content you want protected in the text editor, click on the lock icon in the toolbar, and add your password. It\u2019s that simple.<\/p>\n<h2>Wrapping<\/h2>\n<p>While it won\u2019t be the case that you need to password protect every WordPress site you build, it\u2019s good to know the option is available&#8211;even if your clients don\u2019t initially realize this solution is possible. By utilizing the password protect features found in web hosting, WordPress, as well as plugins, you can quickly and easily add this extra layer of protection to any WordPress site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It may seem counterintuitive, but there will be times when you need to restrict access to the content on your WordPress site. You can do this through a variety of means. You can make a page private. You can set your site to \u201cnoindex\u201d. You can also create landing pages that only select individuals are [&hellip;]<\/p>\n","protected":false},"author":518583,"featured_media":171584,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[10889,10888],"tutorials_categories":[],"class_list":["post-171393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-gated-content","tag-password-protect"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/171393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/518583"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=171393"}],"version-history":[{"count":5,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/171393\/revisions"}],"predecessor-version":[{"id":189330,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/171393\/revisions\/189330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/171584"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=171393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=171393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=171393"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=171393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}