London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Protect pages with login

Vote:
 

I've got a set of pages in my current project that are not EPiServer-pages but they are included in the project. I'd like these not to be reachable by someone who's not logged in as an administrator/editor to be able to reach these pages. Is there any way to do this?

#36179
Jan 18, 2010 13:20
Vote:
 

Hi Peter.

Maybe you could try to use authorization in <location path=""> in Web.Config?

 <location path="UI/admin">
    <system.web>
      <authorization>
        <allow roles="WebAdmins, Administrators" />
        <deny users="*" /> 
      </authorization>
    </system.web>
  </location>

<location path="yourPath">    

<system.web>

<authorization>

<allow roles="Editor, Administrators" />      

<deny users="*" />

       </authorization>

    </system.web>

  </location>

Br, Tore

#36180
Jan 18, 2010 13:45
Vote:
 

Perfect! I thought that would be alot harder. Thank you very much!

#36191
Jan 18, 2010 16:02
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.