Home > Backend Development > PHP Tutorial > Solutions to malicious DDoS attacks in PHP code_PHP tutorial

Solutions to malicious DDoS attacks in PHP code_PHP tutorial

WBOY
Release: 2016-07-13 17:10:58
Original
1068 people have browsed it

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.html
TechArticle
I 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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template