Options to Allow traffic from specific countries/regions only

What is the name of the domain?

What is the issue you’re encountering

want to allow user access by country

What steps have you taken to resolve the issue?

I would like to know what are the options to allow traffic by specific countries/regions only.
I noticed that WAF has this option, is there any other option to achieve this?

Why do you need something else other than a firewall rule to do geo-bloxking?

1 Like

I like to know my options, but thanks for asking.
The questions was if there are any other possibilities besides WAF :slight_smile:

It sounds like your question is if it’s possible to do what the WAF does, but without using the WAF.

Why don’t you want to use the easiest solution?
Is there some specific behavior you’re looking for that the WAF doesn’t provide?

You guys keep asking me the same question.
I just want to know, if there is another way :slight_smile: Please don’t ask me why I wanna do that again.

You’re not being specific, so we don’t know what behavior you’re after.

To allow traffic from specific countries/regions only, means to Disallow from others (block, which is a 403).

Sure, there are other ways. You can use a Snippet that triggers on the same things a WAF rule would, and it can return a 403.

Same goes for Custom Error Response

There’s always Access, which can use a Policy based on location:

If you just want to divert unwanted traffic, you can use a Redirect Rule, using the same triggers as a WAF rule:

Bulk Redirects are similar to Redirect Rule. Again, using the same triggers as the WAF rule:

A full-blown worker can do its own checks for countries and regions, and return a 403. Even a Redirect, which a Snippet could also do:

Origin Rules, similar to Redirects, can divert requests to somewhere else if you’re on an Enterprise plan:

1 Like

Thank you for the answer :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.