+ Start a Discussion
baller4life7baller4life7 

RESTRICT site access via IP Range for guests (no login required)

Hello guys,

I have a public SFDC site. I want to restrict the access of this site to my corporate's ip range. The site should be visible to guests (no SFDC users). Therefore no login is required to view the site.

 

But everytime I add an IP Range to the Public Access Settings of the site, it shows the "Authorization Required" site as soon as I access the site :-(

How can I get rid of this "Authorization Required" site?

 

Thank you

Aljoscha

Best Answer chosen by Admin (Salesforce Developers) 
baller4life7baller4life7

Thank you Ryan for the hint. I' ve now figured a way out on how to use IP range restrictions on public SFDC sites! I will sum it up for all others being interested:

 

1. Create your site

2. Open the site detail page

3. Click the "Public Access Settings" button

4. Scroll down to Login IP Ranges and click the "New" button

5. Enter your desired IP range and save

6. Go back to the site detail page

7. Locate the Secure Web Address and use this URL as the target for your public domain

 

Secure Web Address    https://<xxx>.secure.force.com/<xxx>

 

Done! :)

All Answers

Ankit AroraAnkit Arora

I have some doubts, please clarify them so I can suggest you better.

 

1) You want to restrict user who have IP other than your corporate IP.

2) When you don't add the IP restriction range for sites then also you face "Authorization Required" error?

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

baller4life7baller4life7
1) You want to restrict user who have IP other than your corporate IP.

 Yes!

 

2) When you don't add the IP restriction range for sites then also you face "Authorization Required" error?

 No, the "Authorization Required" page only shows up, when I add the corporate's proxy ip address to the public access settings... But I'm working inside the corporate's network. So normally I should be able to see the site without the "Authorization Required" page as soon as I add the ip address and enter the site, right?

Ryan-GuestRyan-Guest

Http won't work with IP restrictions, regardless of what the IP is (for security reasons).

 

If you want to use IP restrictions, the platform will only let you use the secure subdomain.

baller4life7baller4life7

Thank you Ryan for the hint. I' ve now figured a way out on how to use IP range restrictions on public SFDC sites! I will sum it up for all others being interested:

 

1. Create your site

2. Open the site detail page

3. Click the "Public Access Settings" button

4. Scroll down to Login IP Ranges and click the "New" button

5. Enter your desired IP range and save

6. Go back to the site detail page

7. Locate the Secure Web Address and use this URL as the target for your public domain

 

Secure Web Address    https://<xxx>.secure.force.com/<xxx>

 

Done! :)

This was selected as the best answer
sneh@xyz.comsneh@xyz.com

how to access site without login.

is anyone help me..

SFDC Dev82SFDC Dev82
Hi bet4life7

I have Force.com sites, which i would like to restrict to particualr IP Ranges only .. 

1. Create your site
2. Open the site detail page
3. Click the "Public Access Settings" button
4. Scroll down to Login IP Ranges and click the "New" button
5. Enter your desired IP range and save
6. Go back to the site detail page
7. Locate the Secure Web Address and use this URL as the target for your public domain
 
1<strong>Secure Web Address</strong>    <strong>https</strong>://<xxx>.<strong>secure</strong>.force.com/<xxx>
 

I did not quite understand this , can you please eloborate this .

Thanks
SFDC Dev