Skip to content
xmdcodeEL: Διαβάστε τη σελίδα στα ελληνικά
All articles

How to Set Up a Shopify App IP Allowlist with IPs and ASNs

Shopify's app IP allowlist now takes IP addresses and ASNs together. Learn when to use each, what a 403 error means, and how to test first.

Shopify appsPublished: 3 min read
Illustration of an app settings card with a shield and a list of allowed addresses, some fixed and one shown as a cloud.

Until recently, the IP allowlist for a Shopify app in the Dev Dashboard made you choose between IP addresses and networks. Now you can enter both in the same list. That helps when your app sends requests from a mix of fixed and changing addresses. This guide explains what changed, how to fill the list safely, and how to test it before you turn enforcement on.

What changed in the app IP allowlist?

The allowlist sits in your app’s Settings page. According to Shopify’s developer changelog, as of November 2026 you can enter:

Setting Limit
IP addresses or CIDR ranges Up to 250 (previously 100)
Networks (ASN) Up to 10
Countries to limit your ASNs Up to 10

A request is allowed if it matches one of your IP addresses or one of your ASNs. Anything else fails with a 403 status code.

The country setting only affects your ASNs. It does not restrict the IP addresses you have listed.

What is the difference between an IP address and an ASN?

An IP address points to one machine, or a small range of them. An ASN (autonomous system number) identifies a whole network, and that network is often a hosting provider’s.

That difference decides how safe each entry is. Shopify’s changelog says that allowing specific IP addresses is the most secure option, because only your own servers can use your app’s access tokens. An ASN lets through every address on the provider’s network, including addresses that belong to the provider’s other customers.

Which entries should you use?

Follow this order:

  1. Add the fixed IP addresses of your servers first. If your app runs on a server with a static address, this is the entry to use. Add it as a single address, or as a CIDR range only if you control the whole range.
  2. Add an ASN only for dynamic addresses. Serverless functions are the usual case, because their outgoing addresses change. Shopify says to use ASNs only for requests that come from dynamic addresses.
  3. Limit each ASN to the countries your app runs in. If your functions run in one region, select only that country, not every country you might ever use.

How do you test the allowlist before enforcing it?

Shopify recommends testing the updated allowlist against recent traffic before you turn enforcement on. In practice, that means:

  • Pull the IP addresses from your recent API request logs. Your hosting or serverless provider’s logs usually show them.
  • Check each address against the list. Remember that a serverless address may fall inside an ASN you have not added yet.
  • Fix any gaps, then check again.

Do this before enforcement. Once the list is enforced, a missing address does not just log a warning. Its requests fail with a 403 error, and your app stops working for that call.

What are the common mistakes?

  • Using an ASN where a fixed IP would do. The ASN lets in other customers of the same hosting provider. Keep ASNs for the requests that need them.
  • Forgetting a second server. A staging or background worker with its own address will fail until you add it.
  • Expecting the country setting to cover IP addresses. It only limits ASNs.
  • Leaving the list untested. A short test with recent traffic takes less time than debugging failed requests in production.

Why act now?

The changelog says IP allowlists will soon be required for all public and custom apps. Shopify also strongly recommends that every app uses one. Setting the list now gives you time to test it, before a requirement forces the change.

If you want help checking your app’s allowlist, or setting up the servers and network entries that go into it, get in touch. Tell me where your app runs and which requests it makes, and I will tell you what to put in the list.