0

I had a request from client side. They want disable access to http://mysite/_layouts/viewlsts.aspx from anonymous user, no login and throw an exception : The page cannot be displayed because an internal server error has occurred Anyone could help me for archive this. Thank you guys

  • 1
    Your question is slightly difficult to understand, can you please rephrase it. – Asad Refai Apr 26 '18 at 6:12
  • when end user access to site content, there is no login form and throw an error message : The page cannot be displayed because an internal server error has occurred. Prevent our client access or hack to site content. Thanks – Thai Ha Dang Apr 26 '18 at 6:16
0

Restricting user from accessing layouts path

Add below entries in web.config file of the site you want to restrict.

<location path="_layouts/15/viewlsts.aspx">
<system.web>
  <authorization>
    <allow users="domain\UserLoginName" />
    <deny users="?" />
    <deny users="*" />
  </authorization>
</system.web>
</location>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.