# Redirect for all countries but one

**URL:** https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255
**Category:** Questions
**Created:** [April 8, 2024, 7:04am UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255 "2024-04-08T07:04:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![yoni](https://avatars.discourse-cdn.com/v4/letter/y/ee59a6/32.png) [@yoni](https://community.kinsta.com/u/yoni)
#### Post date: [April 8, 2024, 7:04am UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/1 "2024-04-08T07:04:26Z")

</div>

We’re hosting a wordpress site and have geolocation enabled.  
I would like to set up a redirect rule for ALL countries except one. Is there a way to define that?  
Otherwise, is there a list of all countries so I can create a CSV file for import?

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [April 8, 2024, 7:46am UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/2 "2024-04-08T07:46:15Z")

</div>

Hello Yoni 👋 Welcome to Kinsta Community!

This kind of redirect would not be optimal to do from Mykinsta. Depending on where you would be redirecting from and where to, it might cause a loop or it might work, but with an extra step in redirect.

If this is in regards to a site hosted on Kinsta, you can contact our Support team to do this for you via NGINX, only Kinsta staff can control NGINX.

However, feel free to reply and let me know what URL would you be redirecting from and to.

Kind regards,  
Vladimir M

---

<div class="post-metadata">

### Author: ![yoni](https://avatars.discourse-cdn.com/v4/letter/y/ee59a6/32.png) [@yoni](https://community.kinsta.com/u/yoni)
#### Post date: [April 9, 2024, 12:42pm UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/3 "2024-04-09T12:42:35Z")

</div>

Well - I’m actually trying to do a very simple redirect - from /my-site.com/wp-admin to /my-site.  
The purpose is to disable access to /wp-admin from irrelevant geographies where I know for sure anyone trying to access it from there is a bad actor.

---

<div class="post-metadata">

### Author: ![jackirish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jackirish/32/1361_2.png) [@jackirish](https://community.kinsta.com/u/jackirish)
#### Post date: [April 9, 2024, 9:41pm UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/4 "2024-04-09T21:41:17Z")

</div>

Hi @yoni ! 👋

That’s not a problem; if you contact our support team via chat, we can either set up a redirect, or even an outright geo-IP block for the site. That block or redirect can be set up for /wp-admin specifically, any other individual page or set of pages, or for the entire site if you would like.

---

<div class="post-metadata">

### Author: ![YasirGWS](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/yasirgws/32/5380_2.png) [@YasirGWS](https://community.kinsta.com/u/YasirGWS)
#### Post date: [February 11, 2026, 6:23am UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/5 "2026-02-11T06:23:06Z")

</div>

> [@VladimirM](#):
>
> This kind of redirect would not be optimal to do from Mykinsta. Depending on where you would be redirecting from and where to, it might cause a loop or it might work, but with an extra step in redirect.

It would definitely be handy to have a country “whitelist” , for redirection, because sometimes a service only exists in a few countries, and it wouldn’t make sense for someone halfway across the globe to be able to say make a booking or an appointment

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [February 11, 2026, 7:43am UTC](https://community.kinsta.com/t/redirect-for-all-countries-but-one/3255/6 "2026-02-11T07:43:25Z")

</div>

Hello @YasirGWS 👋 Welcome to the Kinsta Community!

Thank you for your feedback. Due to the nature of how Mykinsta redirects work, that’s not possible at this point, however, our support team can create redirects of this kind directly in NGINX.

If you wish to set this up, feel free to open a Support Chat via Mykinsta.

Kind regards!
