Auth0 Home Blog Docs

GeoBlocking using Auth0

ip
block

#1

I am running a campaign and want to block all US IP addresses/users.
Can this be done implicitly using Auth0?


#2

There’s no built-in configuration switch that would address that immediately, however, you can implement a rule that will reject a login request based on any custom logic you include within the rule.

In addition, the context information made available to the custom rule already contain Geo IP information that you may want to reuse for your checks (see request.geoip).


#3

There’s no built-in configuration switch that would address that immediately, however, you can implement a rule that will reject a login request based on any custom logic you include within the rule.

In addition, the context information made available to the custom rule already contain Geo IP information that you may want to reuse for your checks (see request.geoip).


#4

(please ignore this answer, trying to troubleshoot why forum platform considers the question unanswered if only has one answer)


#5

There’s no built-in configuration switch that would address that immediately, however, you can implement a rule that will reject a login request based on any custom logic you include within the rule.

In addition, the context information made available to the custom rule already contain Geo IP information that you may want to reuse for your checks (see request.geoip).


#6

Thank you! I’ll check that out and see how it works out.


#7