I'm a beginner at Flask/Python.
To prevent unauthorized access,
I want to respond to unauthorized access attacks by discarding the response when I receive an unauthorized URL.
If you look at other sites, there were things like sending binaries endlessly as a huge image file, but I don't want to load the server, and if I send response 400, it will speed up the next attack. Is there a way to deal with it with Flask?
I can handle Node.js without performing response.end related...
If you know more, please let me know.
python flask
In a typical production environment, an HTTP server, such as nginx, handles the route before Flask processes it, so you should not respond to URLs that do not match at the time of the HTTP server.
Reference Page: How can I tell nginx to silently ignore requests that don't match and let them time out install of giving 404
The link above provides a technique for deliberately writing the action of returning HTTP response 444 on nginx so that nothing actually answers.
578 Understanding How to Configure Google API Key
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.