Heading icon placeholder Launch Alert: Create Custom Post type using Dynamic Fields Engine

Hur man lösenordsskyddar en sida i WordPress [2 metoder]

Hur man lösenordsskyddar en sida i WordPress

Om du driver en WordPress-webbplats kan det finnas tillfällen då du behöver kontrollera vem som ser specifikt innehåll. Till dölja sådan känslig information eller skapa exklusivt skyddat innehåll på din WordPress-webbplats hjälper lösenordsskydd.

I den här guiden kommer vi att prata om hur man lösenordsskyddar en sida i WordPress. Det finns två enkla metoder för att lösenordsskydda allt innehåll. För att lära dig metoderna, fortsätt läsa...

By default, WordPress supports applying password protection to pages on your website. But using a plugin offers more controls and advanced functionalities.

Default way to password protect a page:
Logga in på din WordPress-instrumentpanel.
– Go to Pages → All Pages.
– Click Edit on the page you want to hide.
– In the right-hand Page settings panel, find Status.
– Click on the current status, then choose Password Protect and insert a password.
– Click Save.

ElementsKit password protect page:
Installera och aktivera ElementsKit på din webbplats.
– Open your page with the Elementor editor.
– Drag the Skyddat innehåll widget into your layout.
– Enter your Lösenord and select the content you want to hide in the Content tab.
– Stil the fields and content to match your site’s design.
– Click Publicera eller Uppdatering.

Overall, the ElementsKit Protected Content Widget is an advanced option to protect a page with password. It helps you create an error-free and future-proof password-protection system for WordPress pages or any specific sections.

Why Should you Password Protect a Page in WordPress?

Det finns några specifika skäl till varför du kanske vill skydda innehåll från allmänheten eller specifika personer. Låt oss veta orsakerna först -

Sensitive information: A protected page keeps financial documents, client details, or internal plans away from unauthorized eyes.
Work in progress: It hides drafts or unfinished content from the public while sharing it with your team for feedback.
Members-only content: You can restrict premium content to paying members only.
Coming soon pages: It lets you build anticipation for a launch without exposing it to everyone.
Avoid search indexing: WordPress Password protected pages won’t appear in search results.

How to Password Protect a Page in WordPress

You can find a password protection feature in WordPress’s default system, and also use a plugin. Let’s learn the methods one by one! 

Method 1: The Default Way in WordPress

Gå till inlägg/sidor från WordPress-instrumentpanelen. Du kan skapa nytt innehåll eller öppna befintligt innehåll där du vill använda lösenordsskydd.

Öppna valfri sida eller inlägg för att skydda innehåll med lösenord

In the Gutenberg editor –

  • Hitta Status & visibility
  • Välj Password protected from the choices
  • Write a password in the field and update the page
Default way for password protect WordPress pages and posts

Det är allt! Det kan se ut så här 👇

Skapat lösenordsskyddat innehåll med WordPresss standardfunktion

Method 2: Create Password Protected Content Using a Plugin

Här har vi använt ElementsKit-plugin som erbjuder en widget med namnet "Skyddat innehåll".

Insticksprogrammet är ett populärt tillägg för Elementor. Det tillhandahåller speciella widgets, moduler, olika anpassnings- och kontrollalternativ, ett expansivt designbibliotek och mer. Dessutom, ElementsKit är betrodd av 1+ miljon användare.

Installera ElementsKit

Börja med att ladda ner ElementsKit från här. 

Ladda ner ElementsKit från WordPress

Remember, to use the ElementsKit-widget för skyddat innehåll du behöver ElementsKit Pro. Det är lätt att välja en plan som passar dig här.

Glöm inte att aktivera plugins efter installationen. 👇

Aktivera ElementsKit och ElementsKit pro

To create an Elementor password protected page, you can start by creating a new content or open any existing content. Afterward, you have to click on Redigera med Elementor.

Redigera vilken sida/inlägg som helst med Elementor

Sök på ElementsKit-widget för skyddat innehåll och dra den för att anpassa.

Find and Drag and drop ElementsKit Protected Content widget

Widgeten erbjuder olika anpassningsalternativ. Du kan använda alternativen från Innehåll och stil avsnitt to design WordPress password protect page.

ElementsKit Protected Content

Du är färdig! ✌️

Här är utdataexemplet vi har gjort med ElementsKit-widget för skyddat innehåll.

Framgångsrikt skapat ett snyggt lösenordsskyddat innehåll med ElementsKit Protected Content-widgeten

Removing Passwords from WordPress Posts and Pages

If you have a password-protected WordPress page or post and want to remove it, no worries! Removing password protection is a breeze. Let’s walk through the quick steps to make your content public again.

Removing the Default Password Protection in WordPress

Gå till sidan eller inlägget där du har skyddat innehåll med ett lösenord. Hitta synlighet och avmarkera "Lösenordsskyddad". Nu kan du välja mellan offentliga och privata alternativ, enligt dina preferenser. Tryck sedan på "Spara"-knappen för att göra det live.

Ta bort lösenordsskyddet med WordPresss standardfunktion

Removing Password Protection Created by a WordPress Plugin

Att ta bort lösenordsskyddet från WordPress-innehållet som du har skapat med ett plugin är enkelt.

  • Gå bara till den sidan/inlägget
  • Klicka på redigera med Elementor
  • Tryck på höger knapp på lösenordsskyddswidgeten
  • Ta bort widgeten
  • Uppdatera inlägget/sidan

Detta tar omedelbart bort lösenordsbegränsningarna. Dubbelkolla dock att detta stämmer överens med dina säkerhetsmål.

Removing Password Protection Created by a WordPress Plugin

Default WordPress Password Protection vs. Plugin-Based Protection

Default (built-in)
Plugin-based

No option to share multiple passwords

You can set different passwords per user or role

No user role restrictions

You can restrict access by user role (e.g. subscriber, editor)

The password stays active until you remove it

Offer options to set automatic expiry dates and time limits

No log of who accessed the page or when

Full access logs with user and timestamp

Stores access in a browser cookie valid for 10 days

Configurable session length and cookie handling

You can’t customize the login prompt

Fullt anpassningsbar

Post excerpts can still appear in RSS feeds and search results

Content is hidden completely across all feeds

You have to protect the child pages individually

Protection cascades automatically to child pages

Built-in and ready to use with zero setup

Requires installing and configuring a plugin

Completely free

Free to premium

Vanliga frågor

Q1. Why consider a password protection plugin for WordPress?

Du kan använda WordPress inbyggt lösenordsskydd, men för att njuta av extra funktioner måste du prova ett standardplugin. Till exempel erbjuder ElementsKit-widgeten för skyddat innehåll funktioner som användare rollbegränsningar, välja innehållstyp, ställa in varningsmeddelanden för fel lösenord, etc.

Q2. How can I identify password-protected pages in WordPress?

Om du har använt WordPresss inbyggda lösenordsskyddsalternativ för att skydda ditt innehåll måste du besöka sidorna/inläggen från instrumentpanelen. Nu kan du enkelt identifiera sidan/inlägget som skrivits "Lösenordsskyddad" med titelnamnet.

Q3. Is Password protection all you need to protect a page?

Password Protection is a good first step, but not enough on its own. To secure a page fully, you need –
– User authentication (requires login, not just a password)
– Role-based access control
– Media file protection to block direct URL access
– HTTPS to encrypt the password in transit
– A plugin to manage sessions and revoke access when needed

Q4. How to make a WordPress site private?

Method 1: Go to Settings → Reading and enable “Discourage search engines from indexing this site” to hide it from public searches.
Method 2: For full privacy, use a plugin like WP Hide & Security Enhancer.
Method 3: Use a password protect plugin, like ElementsKit, to protect pages and posts from all visitors until they log in.

Q5. Can I protect files and images with the password protect feature?

No. The password protect feature only hides pages/posts. Anyone with a direct URL to an image or PDF can still access it.

Slutsats

Sammanfattningsvis innehållet, medan det inbyggda systemet är en enkel lösning, en plugin som ElementsKit ger ytterligare funktioner och finare kontroll for sure. Consider your specific needs and technical comfort level when choosing your method. Ultimately, password protection empowers you to create a secure space within your WordPress site. This way you can easily ensure sensitive information reaches the intended audience.

ElementsKit Elementor-tillägg


Profilbild för Priyanka

Priyanka

WordPress Plugin Specialist, Product Documentation Expert, Gutenberg Editor Specialist

Kommentarer

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *

Innehållsförteckning