function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AnshulVermaAnshulVerma 

How to restrict users to access certain pages

Hi,

I'm developing an application using Visualforce. We are developing a whole new User Interface and the user would use that itself. How can we restrict users to access only our visualforce pages and nothing else (even if user tried to navigate default Salesforce.com pages by placing the correct path of any other page e.g. home page in the address bar).

E.g. i have a page called messages (visualforce), now i don't want user to access any of the pages available from Salesforce (e.g. home etc.). What i want is even if users enters the correct path of home page in the navigation bar, the application should detect it and stop him to do so.

Thanks in advance.

Regards,
A.V.