Articles in this section

Is it possible to restrict URL Route Access by IP address?

It's not possible to restrict IP addresses to access a given route.

You can block IPs at the environment level with the HTTP Access Control and provide either:

  • a list of IP addresses
  • a username and password for basic authentication

Note that this will affect requests for all routes.

It is also possible to have either a CDN or your app block a specific IP on a given route for you, since the IP address of the original requester will be passed to your app through via theX-Forwarded-Forrequest header, and the route that was matched by the router will be shown in theX-Original-Routerequest header.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.