We enable anonymous access of one of our site collections. The concern was that anonymous users were able to access application pages of the site. Like anonymous users were able to browse “All Site Contents” by adding “_layouts/viewlsts.aspx” to the URL. This also give them ability to browse document libraries, lists etc.
First solution is in two steps:
Enable LockDown Feature using command:
stsadm –o activatefeature -filename ViewFormPagesLockdown\feature.xml –url <SiteCollectionURL>
- Disbale and enable anonymous access by setting it to “Nothing” and then again back to “Entire Web Site”.
Second solution is add following lines in web.config where <location=path…> exist:
<deny users=”?” />
This will block user to view “View All site Contents”.
One interesting point is that if you want to search how many SharePoint site are there with this issue, try google “This system library was created by the Publishing feature to store pages that are created in this site.”