You need to sign in to do that
Don't have an account?
Derek Brost
Can I limit access to Visualforce pages via IP?
Hi Everyone,
I am looking at building a dashboard to display to our teams internally. I want to set up multiple Visualforce pages that have different datasets. Once these pages are created I want to use a URL slideshow to show each page. The issue I have found with this is that I would need to login to the Visialforce page to be able to display it.
I know I could make the page open to the outside world, but most of the data is data I wouldn't want someone to come acorss or access when they leave.
I was wondeirng if there is a way to make the pages on accesable via IP or some other way.
Thanks in advanced.
Derek
I am looking at building a dashboard to display to our teams internally. I want to set up multiple Visualforce pages that have different datasets. Once these pages are created I want to use a URL slideshow to show each page. The issue I have found with this is that I would need to login to the Visialforce page to be able to display it.
I know I could make the page open to the outside world, but most of the data is data I wouldn't want someone to come acorss or access when they leave.
I was wondeirng if there is a way to make the pages on accesable via IP or some other way.
Thanks in advanced.
Derek
Sometimes you might have a need to retrieve the IP address of a user in Salesforce. You can do this with a simple function like this: I recommend that you put this in a utility class and then reference it as needed in code. A great use for this is to limit access to certain pages by IP address. This is accomplished by calling the method in the constructor of a visual force page controller (or controller extension) and then using the value that is returned to check against a list. Here is a very simple example that uses a hard coded dummy IP address : Thanks.