[Flask] Is there a centralized way .. to preprocess URL requests headed to routes.py?
flaskee
flaskee at protonmail.com
Thu Jul 2 18:45:54 EDT 2020
routes.py will have possibly many decorators for different pages of a webpage.
I'm wondering if there is one central place to inspect *any* request made against a flask site;
before it gets to each decorator?
The hacking attacks now adays are many and varied --and it would be nice to
be able to log or pre-process ALL page requests; to look for SQL attacks, URL injection attacks, etc.
Even if the pages being requested are not really on your site; and they are just wildly trying things.
Just a way to see/touch EVERYTHING before it hits the decorators.
Is there a way to do this?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20200702/8ff937d0/attachment.html>
More information about the Flask
mailing list