For the complete documentation index, see llms.txt. This page is also available as Markdown.

Whitelist - Redirect

There are two types of Whitelist options available in the app.

  1. Rule-Based Whitelisting: configured in specific rules.

  2. Global Whitelisting: works for all rules at once with an option (Consider Global Settings) active in each rule, including rule-based configurations.


Rule-based Whitelisting

Rule-based whitelisting prevents redirection for certain users for a particular rule.

It has two options to prevent redirection:

A. Consider Global Whitelisting

The Consider Global setting is used to apply the configuration of the Global Whitelist setting to the specific rule.

To use Global Whitelisting configuration (added IP address or URL) with rule-based configurations, you can enable the Consider Global Whitelisting option in a particular rule.


B. Whitelist IP Setting

This option allows you to disable redirection for specific IP addresses completely.

Steps to configure:

  1. Go to Country Redirect → click Edit on the rule you want to update.

  2. Select the Whitelist option.

  3. Enter the IP address (only Public IPv4 is supported).

  4. Click Save.

Country Redirect - Whitelist section

Note the following points:

The app only supports Public IPv4 addresses.

The IP address should be added in a comma-separated format with no spaces.


C. Whitelist URL Setting

This option prevents redirection for specific URLs on your store.

Steps to configure:

  1. Click + Add new Whitelist Rule.

  2. Enter the URL details.

  3. Click Add to save.

URL Format:

  1. Full URL:

  • Enter the complete URL (domain required).

  • Example: https://spice-country-redirect-demo.myshopify.com/pages/contact

  • Used in Type: Exact

  • Result: The redirection will be disabled from this specific page.

  1. URL Path:

  • Enter only the path of the URL (not the full domain required).

  • Example: /products

  • Used in Type: Contains

  • Result: The redirection will be disabled from all the pages which contain the path (/products).

Use cases of URL Whitelisting

1. Exact

With the Exact type, you can whitelist redirection from specific URLs in your primary store.

For example, to prevent redirection from the 'Contact-us' page. In that case, you need to add the full URL (https://spice-country-redirect-demo.myshopify.com/pages/contact) with the Exact type in the app.

2. Contains

With the Contains type, you can prevent redirection using a keyword in the URL. If the URL contains that specific keyword, the redirection will not be triggered on that URL.

For example, you want to exclude URLs from redirection that contain the keyword “products“. In this case, you need to add the “/products” keyword in the app and select the type “Contains“ to prevent redirection.


Last updated