<p>Yes. Use the <a href="http://buildwithcraft.com/docs/templating/requirelogin">RequireLogin</a> tag at the top of a page:</p>

<pre><code>{% requireLogin %}
</code></pre>

<blockquote>
  <p>This tag will ensure that the user is logged in. If they aren’t, they will be redirected to the Login page, and returned to the original page after successfully logging in.</p>
</blockquote>

<p>(make sure you are logged out before you test this!)</p>

CC BY-SA 3.0
2014-08-21T08:33:09.513Z
2015-02-11T06:44:10.930Z
2015-02-11T06:44:10.930Z
Marion Newlevant
<p>Is it possible to password protect a single page in Craft? Wordpress has this functionality built in. I would love to do it in Craft as well. </p>

<security><password><singles>
Password protect a single page
# Password protect a single page

(Asked by: username_0 on 2014-08-21)

Is it possible to password protect a single page in Craft? Wordpress has this functionality built in. I would love to do it in Craft as well.

**Tags:** security, password, singles

---

## 1 answers

### Answer by username_1 on 2014-08-21. Score: 14

Yes. Use the RequireLogin tag at the top of a page:
{% requireLogin %}


This tag will ensure that the user is logged in. If they aren’t, they will be redirected to the Login page, and returned to the original page after successfully logging in.

(make sure you are logged out before you test this!)


---

