Wednesday, May 30, 2012

User can still access Allitem.aspx via Mobile site after Lockdown Mode

Issue:
One of my user requested to block Allitems.aspx page to be blocked for internet users and I blocked it using following command
stsadm -o activatefeature -url <site collection url> -filename ViewFormPagesLockDown\feature.xml) it works and user get 401 Unauthorized.
However, when user browse into a mobile page they are able to see all the items in the AllItem.aspx page.
Resolution:
  • To turn off site access from mobile device we need to edit the “compat.browser” file for our SharePoint site.
  • To find this file, look in your IIS directory for your SharePoint site and look for the App_Browsersfolder.
C:\inetpub\wwwroot\wss\VirtualDirectories\<Site Folder>\App_Browsers
Edit the file as guided in http://blog.drisgill.com/2009/11/sp2010-branding-tip-6-mobile-browsers.html

Popular Posts

Disclaimer

The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.