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 access to Salesforce pages to a user

Hi,

I'm developing an application using Visualforce and Apex. 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 by default from Salesforce (e.g. home page etc.). What i want is that, even if user 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.