Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

ユーザー登録なしでWordPressをパスワードで保護する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

サイトのコンテンツをパスワードで保護する方法を紹介するチュートリアルはたくさんあります。その多くは、ユーザー登録を必須とする複雑なメンバーシッププラグインを利用しています。しかし、ユーザー登録なしでサイトをパスワードで保護したい場合はどうしたらいいでしょうか?例えば、クライアントワーク用のデモサイトがあるとします。特定のクライアントだけにサイトを見せたいかもしれません。この投稿では、WordPressサイトを個別パスワードで素早く保護する、とても簡単な方法をご紹介します。

Password protect your WordPress site without user registration

動画チュートリアル

Subscribe to WPBeginner

動画が気に入らなかったり、もっと説明が必要な場合は、このまま読み進めてください。

最初に行う必要があるのは、Password Protectedプラグインをインストールして有効化することです。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

有効化したら、設定 ” Password Protectedページにアクセスしてプラグイン設定を行う必要があります。

Password Protected settings

パスワード保護を有効化するには、Password Protected 状態の横にあるチェックボックスをオンにする必要があります。

次に、管理者とログイン中のユーザーを許可するオプションがあります。また、RSSフィードを許可することもできますが、サイトを非公開にしたい場合は、チェックを外したままにしてください。

ここで新しいパスワードを入力する必要があります。パスワードがわかれば誰でもWordPressサイトを表示することができるので、英字、数字、記号を使った強力なパスワードを選択する必要がある。

特定のIPアドレスへのアクセスを制限することもできます。ただし、この情報をお持ちでない場合は、空欄のままにしてください。

変更を保存するボタンをクリックして、設定を保存することを忘れないでください。

これで、誰かがWordPressサイトにアクセスしようとすると、このようなパスワード画面が表示されるようになります:

Password protected screen

この投稿で、ユーザー登録なしでWordPressサイトをパスワードで保護する方法をご理解いただけたと思います。WordPressの管理エリアを保護するための重要なヒントやハックもご覧ください。

この投稿が気に入った場合は、WordPressの動画チュートリアルをYouTubeチャンネルに登録してください。Twitterや Facebookでもご覧いただけます。

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

33件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    Now, without users registering they will be able to view the site, that means I will have to share the password with them so as have access to the page. This is great especially for a client site that need to be seen and review by the owner before publishing alive. thanks.

  3. tony cook says

    I’m trying to password protect just the_content() on the homepage – it works on all other pages with just the standard wordpress visibility = “Password protected” functionality but on the homepage the content is still visible. The plugin you mention will hide the whole page behind the login page, but in this instance I need to see the page template with just the_content() hidden. Even googling is not coming up with anything.

    I only way around I can think of is to auto redirect from the homepage to a duplicate homepage that is just a standard page.

  4. Ebube says

    please I’m trying to build an online examination site and I want each user to have a different password to view the page of the exam. How do I go about this

  5. Alex says

    This plugin hasn’t been updated in a year and the developer is not responding to questions/problems posted on the support forum. I was wondering if anybody else knows of another solution like this that is actively being maintained?

  6. Anshuman says

    What if I want it to ask password each time I close the page. Currently it is not asking for password once password has been entered.

    Please suggest.

  7. Benedicte says

    Hello, 2 questions:
    – I have just installed and activated this plugin, but it doesn’t seem to be working yet.. (maybe some cache issues)
    – Does the plugin allow to password protect any page that is first being clicked? (so if people click on any subpage – not only the homepage – it is being protected?)
    Thanks,

    • pratikk says

      – did you check those boxes? ()allow admin ()allow logged in users

      – yes when i did that test, i saw that sub pages were protected as well.

  8. Elizabeth Johnson says

    I want to password protect 3 sets of pages. Each of the 3 sets will have 3 pages. And each set will have its own password. I tried creating each of the pages within a set as separate pages but the passwords would only work on 1 and sometimes 2 pages.
    Can I create 3 parent pages (one for each set) and give each parent page its own password? Then can I create 2 sub pages within each parent page and not give those pages a password? Would this eliminate my problem? Would the sub pages be protected by the parent page or would they be unprotected with no password of their own?
    Thank you so much for any help. I am only moderately knowledgeable and feel I am stumbling around in the dark on this.

  9. mel says

    Is there any way to create a custom page with the plugin for password protection? I saw you can replace the login logo but I would like to create a custom page for sign in.

  10. Nigel Spence says

    I’m password protecting a monthly membership site. What happens when I have a member who as been with me for say 4 months, then I get a new member,how do I give them a different password for the same month 1 content? Won’t the new member also get 4 months worth of content???

    Please clarify, as I can not for the life of me fathom this out… :-)

  11. Hughes says

    Thanks for the suggestion. This seems very handy and straightforward. Once installed, do you know if this will prevent content from the site to come up in search engines? And can you remove it without any weirdness later if as you say you use this for client demo purposes? In my case, I wonder if it would work for a client that wants his site private just until ready to reveal his redesign.

    • Noumaan Yaqoob says

      @Hughes it will partially protect your websites from search engines. To block search engines you should add this in your robots.txt file

      User-agent: *
      Disallow: /

  12. ellie says

    would this plug in work if i just wanted to password protect a certain area/group of pages on my site? eg. most of it would be available to the public but with a password protected area for members?
    i don’t want to password protect the whole site.

  13. D says

    Excuse my ignorance but I just wanted to clarify….

    Allowing password access to a group of people (say students in a class for a given time period e.g. 3 months) can be done and then the password changed when the new term begins – to use for an entirely different set of students.

    However, if I am the owner of a wordpress website, I control content/settings etc. i.e. I remain the owner of the site. No such user (allowed in via password access) can ‘hijack’ my site so as to speak.

  14. Namita says

    Hi,

    What if I want to protect multiple pages (menu/sub menus/sub-sub menus) from the clients until I give them the password? Can I still use this plugin?

    Please suggest a way to accomplish my goal if you know a way.

    Thanks!

    • Editorial Staff says

      This is NOT for hackers. The intended purpose of this plugin is for private blogs. For example, you adopted a kid, and you only want their biological family to see the kid’s pictures. Chances are hackers are not targeting your site because you don’t make any $$$. Another use case would be that you have a client demo area. i.e clients.yoursite.com. You can password protect the site, and change the password for every new client (granted that you are not working with numerous at the same time). Hope that clear things up.

      管理者

  15. Zachary Williamson says

    Love it :) thanks to all the WPBeginner team for taking the time to share all this useful information with the world. :P

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。