PX Forums demoYou are signed in as Member. Try it as: Member · Moderator · AdminOne click, no password. All changes are reset every night at 03:45 CET.
Skip to content
Sam Member
Skip to content

Best way to restrict a page to logged-in members?

New topic
Notifications

Notifications

View all notifications
Messages
Sam MemberAccount menu
Sam Member @member · 0 karma
My profile My topics Subscriptions Messages Settings
Replies
6
Voices
7
Views
229
Last activity
Subscribe
Score 3
Elena Petrova Topic starter Helper577 karma41 posts · Joined Dec 2026

I have a "Members only" download page and I do not want it indexed or public.

Choose a reaction
Quote
Report
Reply
Add a comment

6 answers

Score 10
Tomáš Novák Moderator697 karma44 posts · Joined Dec 2026
Solution

Set the page Access to Registered (or a custom level). Then:

  • Anonymous visitors are redirected to the login form.
  • Search engines cannot reach it, so there is nothing to index.
  • Files uploaded through the media manager are still public if someone knows the direct link; use the Protected files option for downloads.

If you want guests to see a teaser, create a short public page that links to the private one.

Choose a reaction
Quote
Report
Reply
Add a comment
Score 3
Hannah Lindqvist Moderator597 karma46 posts · Joined Dec 2026

Which version of Lumen are you on, and which PHP? That usually narrows it down quickly.

Choose a reaction
Quote
Report
Reply
Add a comment
Score 1
Aisha Khan Member302 karma32 posts · Joined Dec 2026

@demo-rafael might know more about this. They answered something similar a while back.

Choose a reaction
Quote
Report
Reply
Add a comment
Score 0
Daniel Reyes Expert876 karma52 posts · Joined Dec 2026

Thanks, that helped! Marking this as solved on my side.

Choose a reaction
Quote
Report
Reply
Add a comment
Score 0
Priya Nair Expert878 karma62 posts · Joined Dec 2026

Not sure it applies to your case, but the docs have a short page about this: Getting started.

Choose a reaction
Quote
Report
Reply
Add a comment
Score 0
Omar Haddad Helper367 karma46 posts · Joined Dec 2026

Have you looked at the error log? logs/error.log usually has the exact line.

Choose a reaction
Quote
Report
Reply
Add a comment

Your reply

Cancel Markdown supported · Ctrl+Enter to send