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

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

Log in
Replies
6
Voices
7
Views
229
Last activity
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
Reply

Solution Go to post #4

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.

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
Reply
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
Reply
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
Reply
Score 0
Daniel Reyes Expert876 karma52 posts · Joined Dec 2026

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

Choose a reaction
Reply
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
Reply
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
Reply