简体   繁体   中英

Redirect all requests from server to Flask app

Is there a way that I could redirect every http get request coming to server to flask application and if certain condition is satisfied the app would pass request on but if not the app would block access to requested url. The request coming from client to server is not related to flask app but I want to filter all requests and give permission only to those who met certain condition.

I would lite to try this in flask, but I am open to every solution possible.

I personally think Flask is a great option to handle a proxy server.

I currently don't have a straight solution as I never did it before but this is what I found around that seems legit (and will implement myself in the feature).

MOST SIMPLE ONE


Flask Dance package


Stack Overflow

Other


The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM