简体   繁体   English

如何防止在PHP中的快速页面请求?

[英]How to prevent rapid page request in php?

These days i'm searching internet to secure my codes and my websites , and one point that I crossed and couldn't find a good and easy to learn solution was how to prevent rapid page request or in easy term DDOS ( not exactly that ) . 这些天来,我正在互联网上搜索代码和网站,以确保自己的代码和网站的安全。我克服了一个无法找到一种好易学的解决方案的要点是,如何防止快速的页面请求或简单的DDOS(并非完全如此) 。

Its really likely to happen if some bot or hackers trying to DDOS a page , I want a way to stop it ,and user can only click and open a page every 2 seconds not requesting lots of queries in less than a second. 如果某些僵尸程序或黑客试图DDOS页面,而我想要一种阻止它的方式,并且用户只能每2秒单击并打开一个页面,而在不到一秒钟的时间内不请求大量查询,则确实可能发生这种情况。

my websites' platform is php/mysql 我的网站平台是php / mysql

is there anyway to do so ? 反正有这样做吗?

thanx 谢谢

If you are running Apache, you should do this at the server level instead of the application (PHP) level. 如果运行的是Apache,则应在服务器级别而不是应用程序(PHP)级别执行此操作。

Try asking for the proper module on serverfault.com . 尝试在serverfault.com上请求正确的模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM