Restricting the chat widget by country

The instructions below are for desktops and laptops only.

Use Country Restriction to control where your tawk.to chat widget appears. You can either show the widget only to visitors from specific countries or hide the widget from selected countries. These settings let you block unwanted regions or limit chats to target markets.

Steps to restrict your chat widget

1. Log in to your tawk.to account.

2. Select the correct property.

3. Click Administration in the top menu.

4. In the left menu, click Chat Widget under Channels.

5. Scroll to Availability Restriction and click Configure under Country Restriction.

6. Slide the Country Restriction toggle on.

7. Choose one of the two options in the dropdown:

- Show widget only to the visitors of the following countries — use this if you want the widget visible only in a short list of countries.

- Hide widget only from the visitors of the following countries — use this if you want the widget available globally except for a few countries.

Then, type the country names you want to include or exclude.

8. Click Save when you’re done. The widget updates automatically after saving — you do not need to change the widget code in your site’s HTML.

Additional considerations

  • Applies only to the selected widget or property
    Country restrictions are set per widget and property. If you manage multiple widgets, ensure you’re editing the correct property.

  • You’ll still see those visitors
    Even if the widget is hidden in certain countries, visitors from those regions still appear in your Live Visitors and Monitoring lists. You can still view their activity and start a chat manually when needed.

  • About location detection
    The system uses IP-based geolocation to determine a visitor’s country. Keep in mind that VPNs, proxies, or privacy tools can make a visitor appear to be in a different location.

    If you rely on country restrictions for compliance or legal reasons, consider a second control layer (for example, server-side checks or message routing rules) because IP-based geolocation can be circumvented by VPNs/proxies.

  • Tip for testing
    To check if your restriction settings work, use a VPN or ask someone in another country to visit your site and confirm whether the widget appears or not.

Related guides


If you have feedback about this article, or if you need more help:

Was this article helpful?

52 out of 77 liked this article

Still need help? Message Us