In this article I am explaining about securing anonymous access in SharePoint 2010 sites. This is a pain for most of organizations when dealing with public facing anonymous access sites. In this article I also cover how to secure _layout folders.If you're developing an anonymously accessible SharePoint website, especially an internet-facing one, you may have noticed that you're SharePoint Forms pages are also accessible to anonymous users. For example http://SERVER/_layouts/viewlsts.aspx, _vti_bin web services etc. Typically we don't want this, so how do you prevent anonymous users from accessing these pages? The following steps will help you to do it. This feature is known as lock down feature which is by default enabled for publishing sites.To enable this feature
<location path="_vti_bin"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location>
<location path="_layouts/login.aspx"> <system.web> <authorization> <allow users="?" /> </authorization> </system.web> </location> <location path="_layouts/error.aspx"> <system.web> <authorization> <allow users="?" /> </authorization> </system.web> </location>
<location path="_layouts/accessdenied.aspx"> <system.web> <authorization> <allow users="?" /> </authorization> </system.web> </location>
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: