Es gibt viele Anleitungen, die Ihnen zeigen, wie Sie den Inhalt Ihrer Website mit einem Passwort schützen können. Viele dieser Anleitungen verwenden komplexe Mitgliedschafts-Plugins, die eine Benutzerregistrierung erfordern. Was aber, wenn Sie Ihre Website einfach nur mit einem Passwort schützen wollen, ohne sich zu registrieren? Nehmen wir an, Sie haben eine Demoseite für Ihre Kunden. Sie möchten vielleicht, dass nur dieser spezielle Kunde Ihre Website sehen kann. In diesem Artikel zeigen wir Ihnen eine sehr einfache Möglichkeit, Ihre WordPress-Website mit einem einzigen Passwort zu schützen.
Video-Tutorial
Wenn Ihnen das Video nicht gefällt oder Sie weitere Anweisungen benötigen, lesen Sie bitte weiter.
Als Erstes müssen Sie das Plugin Password Protected installieren und aktivieren. Weitere Details finden Sie in unserer Schritt-für-Schritt-Anleitung zur Installation eines WordPress-Plugins.
Nach der Aktivierung müssen Sie die Seite Einstellungen “ Passwortgeschützt besuchen, um die Plugin-Einstellungen zu konfigurieren.
Sie müssen das Kästchen neben dem Status „Passwortgeschützt“ aktivieren, um den Passwortschutz zu aktivieren.
Als nächstes haben Sie die Möglichkeit, Administratoren und angemeldete Benutzer zuzulassen. Sie können auch RSS-Feeds zulassen, aber wenn Sie Ihre Website privat halten wollen, sollten Sie das Häkchen nicht setzen.
Nun müssen Sie ein neues Passwort eingeben. Jeder, der das Passwort kennt, kann Ihre WordPress-Site einsehen, daher sollten Sie ein sicheres Passwort mit Buchstaben, Zahlen und Symbolen wählen.
Sie können den Zugang auch auf bestimmte IP-Adressen beschränken. Wenn Sie diese Informationen jedoch nicht haben, sollten Sie dieses Feld leer lassen.
Vergessen Sie nicht, auf die Schaltfläche Änderungen speichern zu klicken, um Ihre Einstellungen zu speichern.
Wenn nun jemand versucht, auf Ihre WordPress-Website zuzugreifen, wird er einen Passwort-Bildschirm wie diesen sehen:
Wir hoffen, dass dieser Artikel Ihnen geholfen hat zu lernen, wie man eine WordPress-Website ohne Benutzerregistrierung mit einem Passwort schützt. Vielleicht interessieren Sie sich auch für diese wichtigen Tipps und Hacks zum Schutz Ihres WordPress-Administrationsbereichs
Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.
Mike
Great articles. Thanks.
WPBeginner Support
You’re welcome
Admin
tony cook
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.
Ebube
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
WPBeginner Support
Hi Ebube,
You may need a WordPress LMS plugin to do that more efficiently.
Admin
Ebube
thanks a lot it was really helpful
Alex
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?
Anshuman
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.
pratikk
your case need 2 sub answers. do you login as admin or do you enter password as user?
Benedicte
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
– 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.
Megan
Naïve question: Will this work for Wordpress.org and Wordpress.com sites?
WPBeginner Support
This guide is for self hosted WordPress.org sites only, please see the difference between WordPress.org vs WordPress.com
Admin
Elizabeth Johnson
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.
mel
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.
WPBeginner Support
You can try Theme My Login plugin.
Admin
Nigel Spence
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…
WPBeginner Support
yes and you probably need a more complex solution than this to handle memberships and subscriptions
Admin
Hughes
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
@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: /
ellie
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.
Editorial Staff
No, you would need a membership plugin for that. This plugin is mainly for totally private blogs (family blogs or company blogs).
Admin
D
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.
Editorial Staff
Yes that is correct. You own the site entirely. The students can only view the site. They cannot change anything.
Admin
Namita
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
This would work for all pages not just the homepage. So yes, you can use this plugin.
Admin
Klaas Cuvelier
I’ve been using this plugin: http://wordpress.org/extend/plugins/basic-authentication/
It pretty much does the same, but you can choose between a „predefined“ password, or a Wordpress login to secure your Wordpress installation
Michael Hanna
Very interesting, we are looking at using this on our website…
Liza
Won’t hackers be able to find another way around this?
Editorial Staff
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.
Admin
Zachary Williamson
Love it thanks to all the WPBeginner team for taking the time to share all this useful information with the world.