[英]Isn't it dangerous to run a Flask app in debug mode on 0.0.0.0?
Configure Flask dev server to be visible across the.network 将 Flask 开发服务器配置为在整个网络中可见
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?这意味着它在我的 PC 的 IP 地址上运行,整个 inte.net 都可见,并且可以通过我的 Flask 应用程序运行任意 Python 代码?
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
)?10.0.0.x
或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?localhost
.localhost
上测试您的恐惧。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.