<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.4 Restrict Access to a Page without Sign in</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121765221" />
  <subtitle>Liferay 7.4 Restrict Access to a Page without Sign in</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121765221</id>
  <updated>2026-04-03T23:23:09Z</updated>
  <dc:date>2026-04-03T23:23:09Z</dc:date>
  <entry>
    <title>RE: Liferay 7.4 Restrict Access to a Page without Sign in</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121768504" />
    <author>
      <name>Christian Hofstätter</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121768504</id>
    <updated>2023-05-05T15:44:43Z</updated>
    <published>2023-05-05T08:51:18Z</published>
    <summary type="html">&lt;p&gt;1) What Dave said&lt;/p&gt;
&lt;p&gt;2) You will have to enable the &amp;quot;Login Prompt&amp;quot;, which is
  disabled by default. This can either be done in the System, Instance
  or Site Settings und &amp;quot;Security - Login&amp;quot;&lt;/p&gt;
&lt;p&gt;3) This should work automatically&lt;/p&gt;</summary>
    <dc:creator>Christian Hofstätter</dc:creator>
    <dc:date>2023-05-05T08:51:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.4 Restrict Access to a Page without Sign in</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121767068" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121767068</id>
    <updated>2023-05-04T19:21:29Z</updated>
    <published>2023-05-04T19:21:26Z</published>
    <summary type="html">&lt;p&gt;Just remove guest view permission from the page.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-05-04T19:21:26Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.4 Restrict Access to a Page without Sign in</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121765220" />
    <author>
      <name>Anish Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121765220</id>
    <updated>2023-05-04T17:03:15Z</updated>
    <published>2023-05-04T09:40:01Z</published>
    <summary type="html">&lt;p&gt;I have created a page named &lt;strong&gt;dashboard &lt;/strong&gt;in the Liferay
  portal, but this page is public and accessible to all without Signin
  using following URL.&lt;/p&gt;
&lt;p&gt;
  &lt;a href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How I can restrict users from viewing this page without Signin. The
  requirement is if user hits the URL &amp;quot;&lt;a
  href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt;&amp;quot;
  without login it should route to the Home page (&lt;a
    href="http://localhost:8080/home"&gt;http://localhost:8080/home
    &lt;/a&gt;or &lt;a href="http://localhost:8080"&gt;http://localhost:8080&lt;/a&gt;),
  there user can do the Signin, after successfull Signin user should be
  navigated to the Dashboard page (&lt;a href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt;). &lt;/p&gt;
&lt;p&gt;I have tried setting the page permissions, but its showing &amp;quot;404
  page not found&amp;quot; if user hits
  &amp;quot;http://localhost:8080/dashboard&amp;quot; without Signin, in my case
  it should redirect to home page.&lt;/p&gt;
&lt;p&gt;Below are the questions I would like to get help from the community.&lt;/p&gt;
&lt;p&gt;1) How we can restrict a page can be viewable for Signed-in users?&lt;/p&gt;
&lt;p&gt;2) How we can redirect to the home page if user accessing a
  resgtricted page instead of showing &lt;strong&gt;404 page not found&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;3) How we can redirect to a specific page (example &lt;a
  href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt;)
  after successfull Signin?&lt;/p&gt;
&lt;p&gt;I am using Liferay version 7.4.3.74.&lt;/p&gt;</summary>
    <dc:creator>Anish Kumar</dc:creator>
    <dc:date>2023-05-04T09:40:01Z</dc:date>
  </entry>
</feed>
