Can I route based on response from a 3rd party server?

I have a need to to allow/deny route to backend based on a response on a simple REST call
basically to check if that “account” is active or not. (the url have the data I need to make the the REST request)

(if not active it will route to a landing page on another backend)

the actual backends can not do this (since its a prepacked product that i don’t have any control over)

is that possible ?

Yes, you can make routing decisions in a LUA script, which can make calls to APIs for this.

But you will have to invest some time for research, coding and testing, because this won’t be plug and play.

Interesting ! - iam in a pfSense scenario so I guess it will further add on challenges, but I will start
checking LUA and see what I can learn there.