Configure Flask dev server to be visible across the.network
Meaning it runs on my PC's IP address visible to the entire inte.net and arbitrary Python code can be run via my Flask app?
The direct answer is: yes, it is unsafe. But then again, so is driving a car or eating at a new restaurant with bad reviews.
The point is evaluating the risk. Things to consider:
10.0.0.x
or 192.168.xx
)? Is the particular port you're running on open to the wider inte.net eg no firewall or special rules for that port? In which case, expect to get requests.localhost
.
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.