http 对大量 http 请求进行收费
抱歉,我问了一个平庸的问题,但我想知道,当我向某个站点发起许多http请求时,该站点是否会崩溃,或者只是在n个请求限制后(根据服务器设置)我会被禁止?
Sorry for banal question, but i would like to know, while i launch many many http requests to a site, will site goes down or just i will be banned after n request limit (according to server settings)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与大多数情况一样,答案是:这取决于 :)
现在,说真的,这取决于一些事情,但很可能如果您只是用一台客户端计算机访问“一台”服务器很可能无法使其宕机,因为服务器通常比大多数客户端计算机拥有更多的可用带宽(网络和处理能力)。另外,当您向网站发出请求时,您实际上可能向负载平衡的服务器网络发出请求,这绝对意味着单个客户端将无法超越网站。如果是这种情况,您的 IP 可能会被列入黑名单或可能被忽略。
另一种可能性是同时向多个不同的客户端发出大量请求 - 使用不同的 IP。这就是通常所说的协调或分布式拒绝服务攻击。在这种情况下,您可能可以使网络服务器宕机一段时间。
这只是一个简单的答案,但我希望你明白这一点。
As is most always the case the answer is: it depends :)
Now, seriously, it depends on a few things but most likely if you're just hitting "a" server with a single client computer you most likely will not be able to make it go down as servers usually have more bandwidth (networking & processing powers) available to them than most client computers. Plus, when you're making requests to a website you might actually be making requests to a load-balanced network of servers which definitely means that a single client will not be able to outperform the site. If this is the case your IP will probably get blacklisted or maybe just ignored.
The other possibility is to make a lot of requests with a number of different clients at the same time - using different IPs. This is what is usually called a coordinated or distributed denial of service attack. In that case you might be able to make the web server(s) go down for a while.
This is just a simple answer but I hope you get the point.