Tuesday, 6 December 2011

SharePoint 2010 - ViewFormPagesLockdown

Within an anonymous access SharePoint site you may wish to prevent users from navigating to the underlying lists e.g:

  • /_layouts/viewlsts.aspx
  • /Lists/[ListName]/AlItems.aspx

This can be achieved by activating the ViewFormPagesLockdown feature.  This is a hidden feature, however, you can access it through PowerShell.

Get-SPFeature | where { $_.DisplayName -eq "ViewFormPagesLockdown"}

This will display:

1 - ViewFormPagesLockdownThis tells us that the feature is scoped at the site collection level as well as the features ID.  The feature can then be activated using PowerShell similar to bellow:

Enable-SPFeature -url http://sharepoint -identity 7c637b23-06c4-4724-9a9a-7c175762c5c4 -confirm:$false

Anonymous users will now need to authenticate in order to view the underlying SharePoint lists and libraries.


“As this feature is activated across a site collection this can lead to issues with anonymous users posting comments on blogs etc.. However the following blog details a method for overcoming this.”

No comments:

Post a Comment