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
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>