Skip to contentSkip to navigationSkip to topbar
On this page

IP Access Management



What is IP access management?

what-is-ip-access-management page anchor

IP Access Management(link takes you to an external page) is a security feature that allows you to control who can access your SendGrid account based on their IP address. After you allow an IP address, you can only access the SendGrid UI, API, and SMTP relay if you are connecting from an allowed IP address. Any access attempts from other IPs will be blocked. This is a powerful security tool that you can use to help prevent malicious activity on your account.

(error)

Danger

It is possible to remove your own IP address from your list of allowed addresses, thus blocking your own access to your account. While we are able to restore your access, we do require thorough proof of your identify and ownership of your account. We take the security of your account very seriously and wish to prevent any bad actors from maliciously gaining access to your account.

If you do not access SendGrid via a static IP address (for example, via VPN or from a business internet service), setting up IP Access Management may result in being locked out of your SendGrid account. If you have locked yourself out of your account, please contact SendGrid Support(link takes you to an external page).


Enable IP Access Management

enable-ip-access-management page anchor
(information)

Info

There is a limit of 1000 IP addresses that you can allow.

To enable IP Access Management and add allowed addresses

  1. Navigate to the Settings > IP Access Management in the Twilio SendGrid App.
  2. You will see a message explaining IP Access Management under Allow Listed IP Addresses until you enable IP Access Management. IP Access Management will be enabled once you add one or more allowed IPs.
  3. Under Recent Access Attempts, you will see a list of IPs that recently attempted to connect to your account, regardless of whether they are allowed addresses or not. You will also see some additional information about those IPs, such as the date of the first and most recent access attempt, the physical location of the IP, and the method by which they attempted to access your account.

Add IP addresses

add-ip-addresses page anchor
  1. Click Add IP Addresses.
Add an IP Address button.
  1. A dialog will appear. Check the two radio boxes to acknowledge that you understand this feature and select Confirm and Continue.
  2. The Add IP Addresses menu will appear showing Your Current IP and a list of the Recently Accessed IPs.
  3. You can add recently accessed IPs by clicking the + next to the IP you wish to allow.
  4. You can add all the listed recent addresses by clicking Add all to form below.
  5. Any added IPs will appear in the table labeled IP addresses or ranges to add.
  6. You can enter a single IP address or range of IP addresses that don't appear in your recently accessed list by clicking Manually add IPs.
Adding IP addresses from the IP Access Management menu.
  1. A field labeled IP addresses or ranges to add: will appear.
  2. Add your desired IP or range of IPs in CIDR notation(link takes you to an external page). See the "Add a range of IP addresses" section of this page for more about CIDR notation and working with ranges. Separate individual IPs and ranges using either a comma, space, or new line.
  3. Once you have added all your desired IP addresses, click Add <number> IPs at the bottom of the menu.
Adding IP addresses manually.
  1. You will be returned to the Add IP Addresses menu. Your manually added IPs will now appear in the table labeled IP addresses or ranges to add.
  2. Your IPs are now staged to be added. Click Save to finalize adding the addresses to your list of allowed IPs.
Saving staged IP addresses.
(warning)

Warning

If you do not add your current IP address, you will be prompted to add it. Choosing not to add your current IP will terminate your session. You will then have to reconnect to your account from one of your allowed addresses.

Add a range of IP addresses

add-a-range-of-ip-addresses page anchor

You can add a range of IP addresses using CIDR notation(link takes you to an external page) or a wildcard character.

Use CIDR notation

use-cidr-notation page anchor

To enter a range of IP addresses using CIDR notation:

  1. Navigate to the Settings > IP Access Management in the Twilio SendGrid App.
  2. Click + Add IP Addresses.
  3. The Add IP Addresses menu will appear. Click Manually add IPs.
  4. A field labeled IP addresses or ranges to add: will appear.
  5. Enter your routing prefix followed by a / and the number of bits in your routing mask. For example: 192.168.100.14/24.

Explaining CIDR notation is beyond the scope of this article, and we only recommend that advanced users use this notation when allowing IPs. If you are unfamiliar with CIDR notation, we recommend that you enter each IP individually when allowing a range of IPs.

To enter a range of IP addresses using a wildcard character:

  1. Navigate to the Settings > IP Access Management in the Twilio SendGrid App.
  2. Click + Add IP Addresses.
  3. The Add IP Addresses menu will appear. Click Manually add IPs.
  4. A field labeled IP addresses or ranges to add: will appear.
  5. Enter your IP followed by an asterisk. For example, 25.203.44.* will include all IPs that begin with 25.203.44.

Add IP addresses from the Recent Access Attempts list

add-ip-addresses-from-the-recent-access-attempts-list page anchor

Once IP Access Management is enabled, you can add individual addresses from the Recent Access Attempts list to your list of allowed IPs.

  1. From the Settings > IP Access Management page, navigate to an address in the Recent Access Attempts list.
  2. Click the action menu to the right of the address you want to allow and select Add To Allowed List.
Add a single address to your IP Access Management allow list.

  1. From the Settings > IP Access Management page, navigate to the Allow Listed IP Addresses list.
  2. Click the action menu to the right of the allowed address you want to remove and select Remove From Allow List.
Remove a single address from your IP Access Management allow list.
  1. Another dialog will open asking you to confirm the removal. Select Remove IP to continue.
(error)

Danger

It is possible to remove your own IP address from your list of allowed addresses, thus blocking your own access to your account. While we are able to restore your access, we do require thorough proof of your identify and ownership of your account. We take the security of your account very seriously and wish to prevent any bad actors from maliciously gaining access to your account.


Disable IP Access Management

disable-ip-access-management page anchor

You can disable IP Access Management to reopen account access to any IP address and no longer maintain a list of allowed addresses.

  1. From the Settings > IP Access Management page, click Disable Allow List.
  2. A dialog will open asking you to confirm the decision. Click Disable.
Disable IP Access Management.

For additional information about using IP Access Management through our API, see our API Reference.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.