I have encountered a malicious DDoS attack by PHP code before, which occupied all the server resources, causing the website to be unable to be used normally. Let me introduce the solution below.
Solution
Modify the php.ini file
The code is as follows
代码如下 |
复制代码 |
"disable_functions"改成gzinflate,默认是放空
"allow_url_fopen"设为Off
php_sockets.dll 把这个模块打开
|
|
Copy code
|
"disable_functions" is changed to gzinflate, the default is to short
Set "allow_url_fopen" to Off
php_sockets.dll Open this module
|
The above solution is very simple, but it may not be effective. In the end, we still have to find the problematic phpddos program, delete it, and then make the server more secure
is the best solution.
http://www.bkjia.com/PHPjc/629641.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/629641.htmlI have encountered a malicious DDoS attack using PHP code once before, which occupied all the server resources and caused the website to not work properly. After using it, I will introduce the solution below. Solution Modify p...