+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Password Protect a Single Page?

Password Protect a Single Page?

6 posts, 0 answered
  1. Tom
    Tom avatar
    24 posts
    Registered:
    10 May 2013
    24 Jul 2015
    Link to this post

    How can I do this please?   I am using version 8.0.5710.0    

    I have a few pages that I want to restrict, so that when someone from the public happens to comes across that page, they are blocked unless they know the password I gave them.  I've seen this same question in other Sitefinity forums, but no answer:    http://www.sitefinity.com/developer-network/forums/general-discussions-/password-protecting-a-page

     Thanks for any help.

  2. Craig
    Craig avatar
    45 posts
    Registered:
    28 Sep 2008
    24 Jul 2015 in reply to Tom
    Link to this post

    Tom,

     There is no out of the box way to protect a page with a password in Sitefinity, but a customization could be developed to do what you are asking.

    The other option is to have the user create an account in Sitefinity and then add that user to a role that would allow them access just to that web page.  The page would be configured to only allow people in that role to view the page.

    Hopefully this makes sense.  

  3. Tom
    Tom avatar
    24 posts
    Registered:
    10 May 2013
    24 Jul 2015 in reply to Craig
    Link to this post

    Thanks, Craig.   I've added a couple of new test users today and will play around with that.

     

  4. ch
    ch avatar
    25 posts
    Registered:
    14 May 2014
    24 Jul 2015
    Link to this post
  5. Tom
    Tom avatar
    24 posts
    Registered:
    10 May 2013
    24 Jul 2015 in reply to ch
    Link to this post

    Thanks,  CH.   That seemed to work, but not ideal.  It seems like a lot of these permissions are set up for people on the website staff to manage who can edit a page, who can delete a page, etc.   I didn't think it would be so complicated for Sitefinity to have a checkbox that says "password protect this page?"   Click it, enter a password, and all set.

    I followed the link CH sent, and now when I'm not logged in and go to the page, it gives me a 401 Unauthorized permission error, which means the page is protected.  That part is good.    But I would love to have a sign in ​box right there on that page that says you must enter your credentials to see this page.

     

  6. ch
    ch avatar
    25 posts
    Registered:
    14 May 2014
    27 Jul 2015 in reply to Tom
    Link to this post
    See step 8 of tutorial.
6 posts, 0 answered