---
title: Trade compliance overview
description: Restrict site access by country or IP address
---

[Skip to content](https://help.centercode.com/en/trade-compliance-overview#main-content)

[![New\_Centercode\_Logo.png\]](https://help.centercode.com/hs-fs/hubfs/New_Centercode_Logo.png?height=35&name=New_Centercode_Logo.png)](https://centercode.com/)

- [Help Center Home](https://help.centercode.com/)
- [Starter & Delta Edition Help](https://learn.centercode.com/)

Open main navigation

Close main navigation

- [Help Center Home](https://help.centercode.com/)
- [Starter & Delta Edition Help](https://learn.centercode.com/)
- [Report an Issue](https://centercode.com/issue)

[Report an Issue](https://centercode.com/issue)

 How can we help?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.centercode.com/en?hsLang=en)
2. [Community Administration](https://help.centercode.com/en/community-administration?hsLang=en)
3. [Overviews](https://help.centercode.com/en/community-administration?hsLang=en#overviews)

# Trade compliance overview

## Restrict site access by country or IP address

This article applies to: **All** editions

Within your Centercode implementation you have the option to create a trade compliance for your Community. This allows you to block a region or IP from accessing your portal, as well as customize the message that displays when someone tries to access your page from a blocked IP address or country.  

### Accessing Trade Compliance

1. Click the **Community or Project management** in the top-left navigation menu
2. Select **Community or Project configuration**
3. Click **Trade compliance**

### Configuring Trade Compliance

Centercode's trade compliance tool offers you two different methods to control how users are allowed or barred from accessing your site, both achieved via IP locality

- **Allowed/Blocked countries**This interface allows you to allow-list or block-list certain countries from accessing your site (via a Centercode maintained IP registry). Double-click any option to switch it from allowed to blocked or vice versa.
- **IP addresses/ranges**This setting allows you to specifically allow or block custom IP addresses or ranges of IP addresses
- **Block response**This setting controls what a user will see if they attempt to access the site from a blocked IP address 
    - **Redirect to URL**This setting will redirect the user to an offsite URL of your choosing
    - **Message**This setting will allow you to configure a custom in-site message that will be displayed to users when they are IP blocked

### **Notes**

- - - **Community-level blocks take priority**: If a country or IP is blocked at the community level, users will be blocked even if a project tries to allow them.
          - **Project-level blocks can add restrictions**: Projects can block additional IPs or regions beyond what’s set at the community level.

- - - **IP-based blocking:** Trade compliance uses the user's IP address, not their self-selected country or location from their account settings or a user profile. For example, A user who claims to be in Canada (via a profile or account settings) won’t be blocked unless their IP also matches a Canadian address.
          - **Block based on profile data instead:** If you would like to block users who select a certain location on either the *My account settings* page or a custom form element (e.g. on a user profile), place users on a team with no access. A notice macro can be configured to filter on the desired address field(s) and move users that select an inappropriate country to a new team. This team should then have content set as a block notice to bar those users from accessing the system.

- [Centercode Basics](https://help.centercode.com/en/centercode-basics?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/centercode-basics?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/centercode-basics?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/centercode-basics?hsLang=en#faqs)
- [Community Administration](https://help.centercode.com/en/community-administration?hsLang=en#main-content)

    - [Community Administration](https://help.centercode.com/en/community-administration?hsLang=en#community-administration)
    - [Overviews](https://help.centercode.com/en/community-administration?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/community-administration?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/community-administration?hsLang=en#faqs)
- [Project Administration](https://help.centercode.com/en/project-administration?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/project-administration?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/project-administration?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/project-administration?hsLang=en#faqs)
- [Features & Test Planning](https://help.centercode.com/en/features-test-planning?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/features-test-planning?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/features-test-planning?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/features-test-planning?hsLang=en#faqs)
- [Resources & Surveys](https://help.centercode.com/en/resources-surveys?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/resources-surveys?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/resources-surveys?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/resources-surveys?hsLang=en#faqs)
- [Recruiting](https://help.centercode.com/en/recruiting?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/recruiting?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/recruiting?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/recruiting?hsLang=en#faqs)
- [Feedback](https://help.centercode.com/en/feedback?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/feedback?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/feedback?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/feedback?hsLang=en#faqs)
- [Dashboards & Reporting](https://help.centercode.com/en/dashboards-reporting?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/dashboards-reporting?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/dashboards-reporting?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/dashboards-reporting?hsLang=en#faqs)
- [Integrations](https://help.centercode.com/en/integrations?hsLang=en#main-content)

    - [Overviews](https://help.centercode.com/en/integrations?hsLang=en#overviews)
    - [Guides](https://help.centercode.com/en/integrations?hsLang=en#guides)
    - [FAQs](https://help.centercode.com/en/integrations?hsLang=en#faqs)

- [What's New?](https://whatsnew.centercode.com/)
- [System Status](https://status.centercode.com/)
- [Starter & Delta Edition Help Center](https://learn.centercode.com/)
- [Report an Issue](https://centercode.com/issue)

[![Centercode logo](https://help.centercode.com/hubfs/images/logos/Centercode-Logo.svg "Centercode logo")](https://centercode.com)

Copyright © 2027, Centercode