# Block visitors based on their location

**URL:** <https://community.hubspot.com/t/block-visitors-based-on-their-location/102549>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [March 14, 2024, 8:59am UTC](https://community.hubspot.com/t/block-visitors-based-on-their-location/102549 "2024-03-14T08:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sophia8](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sophia8](https://community.hubspot.com/u/Sophia8)\
**Post date:** [March 14, 2024, 8:59am UTC](https://community.hubspot.com/t/block-visitors-based-on-their-location/102549/1 "2024-03-14T08:59:33Z")

</div>

Our company has two websites, a US one and an international one. Both have more than 30 pages. Due to some issues, we want to block US visitors from visiting the international website, or show a message and then redirect them to the US site within 3-5 seconds.

How can I do that?

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [March 15, 2024, 1:26am UTC](https://community.hubspot.com/t/block-visitors-based-on-their-location/102549/2 "2024-03-15T01:26:11Z")

</div>

Hi @Sophia8

While you probably won’t be able to block visitors, you can show them a pop up with a custom message and a button link that would take them to the other website.

You can achieve this by creating a pop-up CTA and then in the Targeting settings, select “Filtered visitors” and set “Country” to “United States”

 ![evaldas_0-1710465486505.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/9/d9753da79fdcc5b879ff4b2862f0f1fef1a48053.png)
