---
schema_version: "1"
id: ea55fa653f6a725fe9530880a1a72108e26893430a2c7bf4a248a3a1536e9daa
title: Restrict Login IP Addresses in Profiles
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/login_ip_ranges.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.login_ip_ranges.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b19658e6bb605c6dd50f11b5cd287c21c43ca4167b4b23677bc7e6e418c00e5f
description: To control login access at the user level, specify the ranges of allowed IP addresses on a user’s profile. When you define IP address restrictions for a profile, a login from any other IP address is denied.
products:
  - Security
release: "264"
---
# Restrict Login IP Addresses in Profiles

To control login access at the user level, specify the ranges of allowed IP addresses on a user’s profile. When you define IP address restrictions for a profile, a login from any other IP address is denied.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: all editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d60609e58">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d60609e58 ">To view login IP ranges:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d60609e58 ">View Setup and Configuration</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d60609e58 ">To edit and delete login IP ranges:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d60609e58 ">Manage Profiles and Permission Sets</td>

          </tr>
        </tbody>
      </table>

How you restrict the range of valid IP addresses on a profile depends on your Salesforce edition.

- In Enterprise, Performance, Unlimited, or Developer Edition, manage valid IP addresses in profiles.
- In Group or Personal Edition, from Setup, manage valid IP addresses on the Session Settings page.
- In Professional Edition, the location of IP ranges depends on whether "Edit Profiles & Page Layouts" is enabled as an add-on feature. With that feature, you can specify login IP ranges for individual profiles. Without the "Edit Profiles & Page Layouts" feature, you can define trusted IP ranges only at the org level on the Network Access Setup page.

Also, these login restrictions don’t apply to sites hosted on Experience Delivery. Manage valid IP addresses for sites hosted on Experience Delivery with [Custom Firewall Rule Expressions](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_custom_firewall_rules.htm&language=en_US) instead.

As of Winter ’26, Salesforce enforces limits for login IP ranges for a specific profile. The limit depends on the IP address type—either IPv4 or IPv6. You can’t add login IP ranges that exceed the limit for your IP range type. If your trusted IP ranges already exceeded the limit before this change, Salesforce can challenge users for device activation even if they’re within their profile’s login IP range. If a user is outside of the range, Salesforce blocks the login entirely. For more information, see [Device Activation](https://help.salesforce.com/s/articleView?id=xcloud.security_overview_identity_verification.htm&release=264.0.0&type=5 "By adding extra verification to unfamiliar login attempts, device activation keeps your orgs and Experience Cloud sites secure.").

Here are the limits for IPv4 and IPv6 addresses. If you use IPv4-mapped IPv6 addresses, the IPv4 limit applies.

 
| IP Address Type | Limit |
| --- | --- |
| IPv4 | 16,777,216 |
| IPv6 | 2^99 (2 to the power of 99) |

When calculating the total number of IP addresses, Salesforce doesn’t count private IP addresses in this range: `10.0.0.0` to `10.255.255.255`. For more information on private IP addresses, see [RFC 1918 from the Internet Engineering Task Force](https://datatracker.ietf.org/doc/html/rfc1918#section-3). To make sure that private IP addresses are excluded, add them as a separate range entry.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)

Note If you already exceeded the limit before Spring ’26, you can’t edit your ranges to include private IP ranges.

## Restrict Login IP Addresses in Profiles

To restrict user logins based on IP ranges, specify at least one allowed IP address range for each profile. When one or more login IP ranges exists on a profile, a login from any other IP address is denied.

1. From [Setup](https://help.salesforce.com/s/articleView?id=xcloud.basics_nav_setup.htm&type=5&language=en_US), use the Quick Find box to find and select **Profiles**.
2. To restrict the IP addresses for this profile, add the allowed IP ranges.
    1. Add an allowed IP range.
        
        - In the enhanced profile user interface, click **Login IP Ranges**, and then click **Add IP ranges**.
        - In the original profile user interface, scroll down to the Login IP Ranges related list, and then click **New**.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)
        
        Note Partner User profiles are limited to five IP addresses. To increase this limit, contact Salesforce.
    2. Specify the allowed login IP addresses for the profile.
        
        Enter a valid IP address in the IP Start Address field and a matching or higher-numbered IP address in the IP End Address field.
        
        To allow logins from a single IP address, enter the same address in both fields.
        
        A range can include either IPv4, IPv4-mapped IPv6 addresses, or IPv6 addresses. An IP address range can’t include multiple types of addresses. For example, ranges like `255.255.255.255` to `::1:0:0:0` and `::` to `::1:0:0:0` aren’t allowed.
        
        - The range of IPv4 addresses is `0.0.0.0` to `255.255.255.255`.
        - The range of publicly accessible IPv6 addresses is `::1:0:0:0` to `ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff`.
        - IPv4-mapped IPv6 addresses allow an IPv6-enabled application to communicate with IPv4-only devices. To accomplish this configuration, the IPv4 address is embedded in the IPv6 address format. These addresses are represented as IPv4 addresses in the Salesforce user interface and in API.
            
            The syntax for an IPv4-mapped IPv6 address is `::ffff:a.b.c.d`, where `a.b.c.d` is the decimal representation of the IPv4 address. For example, the IPv4-mapped IPv6 address of `192.0.2.128` is `::ffff:192.0.2.128`. So, the range of IPv4-mapped IPv6 addresses is `::ffff:0.0.0.0` to `::ffff:255.255.255.255`.
        
        ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_important.png)
        
        Important To prevent user access issues, add login IP ranges with IPv6 addresses only to profiles with at least one login IP range with IPv4 addresses.
    3. Optionally enter a description for the range.
        
        If you maintain multiple ranges, use the Description field to provide details, such as which part of your network corresponds to this range.
    4. To allow users with this profile to log in from more IP addresses, add another range.
    5. Save your changes.
3. To delete a Login IP range, click **Delete**.
    
    To allow a group of users to log in from any IP address, delete all Login IP ranges on the users’ profile.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)

Note Cache settings on static resources are set to private when accessed via a Salesforce Site with a guest user profile that has restrictions based on IP range or login hours. Sites with guest user profile restrictions cache static resources only within the browser. Also, if a previously unrestricted site becomes restricted, it can take up to 45 days for the static resources to expire from the Salesforce cache and any intermediate caches.

## Apply Profile Login IP Restrictions to Page Requests

You can use profile login IP ranges to further restrict access to Salesforce. With this option, those login IP ranges are enforced on each page request, including requests from client applications. Otherwise, login IP ranges are enforced only when a user logs in.

1. From [Setup](https://help.salesforce.com/s/articleView?id=xcloud.basics_nav_setup.htm&type=5&language=en_US), use the Quick Find box to find and select **Session Settings**.
2. Select **Enforce login IP ranges on every request** and save your changes.
    
    This setting affects only user profiles with login IP restrictions.

## Prepare for IPv6 Support for Profile Login IP Ranges

Today, IPv6 is supported only for the Salesforce Content Delivery Network (CDN) for Experience Cloud sites. But Salesforce is working behind the scenes to fully support IPv6. There’s no specific target date for full IPv6 support. Salesforce plans to roll out IPv6 support in stages. Watch the release notes for announcements about the specific timing for each phase.

When Salesforce supports IPv6 for your org, IPv4 allowlists remain active and users can only log in via an IPv4 or IPv6 address that their profile allows. To ensure uninterrupted access for your users, for each profile with a login IP range with IPv4 addresses, add one or more login IP ranges with those users’ IPv6 addresses.

Here are some considerations as you add IPv6 allowlists to your profiles.

- If no login IP ranges exist on a profile, users with that profile can log in to Salesforce from any IP address. Profile login IP ranges aren’t required. However, profiles with one or more login IP ranges can require updates for IPv6.
- You can add a login IP range with IPv6 addresses today, but logins via those addresses are permitted only when Salesforce supports IPv6.
- There’s no correlation between an IPv6 address and an IPv4 address. To determine your users’ IPv6 addresses, work with your network team.
- Until Salesforce fully supports IPv6, if a profile includes login IP ranges, verify that at least one IPv4 range exists on the profile. If one or more login IP ranges exists on a profile, a login from any other IP address is denied. Thus, if a profile’s login IP ranges include only IPv6 addresses, users with that profile can't access Salesforce until IPv6 is supported in your org for the feature that the user is accessing.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-security-264-0-0-production-enus/8cecd769-ab2d-4e07-addf-c4f2927925e1/images/icon_note.png)

Note If you use IP allowlists on Hyperforce, consider a [preferred alternative](https://help.salesforce.com/s/articleView?id=000394078&type=1&language=en_US) such as implementing mTLS or allowing domains.

#### See Also

- [IP and Domain Access](https://help.salesforce.com/s/articleView?id=xcloud.security_access_ip_domains.htm&release=264.0.0&type=5 "Add the required domains to your network allowlist, and configure IP allowlists in Salesforce.")
- [Set Trusted IP Ranges for Your Org](https://help.salesforce.com/s/articleView?id=xcloud.security_networkaccess.htm&release=264.0.0&type=5 "To help protect your Salesforce data from unauthorized access, specify a list of IP addresses from which users can log in without receiving an identity verification challenge.")
- [View and Edit Login Hours in Profiles](https://help.salesforce.com/s/articleView?id=platform.login_hours.htm&language=en_US&type=5)
- [Configure Default Settings in Profiles](https://help.salesforce.com/s/articleView?id=platform.users_profiles_using_enhanced_ui.htm&language=en_US&type=5)
- [_Knowledge Article_: Preferred Alternatives to IP Allowlisting on Hyperforce](https://help.salesforce.com/s/articleView?id=000394078&language=en_US&type=1)