Methods to prevent DDos from being attacked on dede website
This article is about how to prevent DDos from being attacked on the dede website. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
How to prevent dede website DDos from being attacked?
Step 1: enter the background, system-"add a new variable name: cfg_anquan_cc
Recommended study: dream weaving cms
Variable type: Boolean (YUnip N)
Parameter description: whether to enable anti-CC attacks:
Variable value: y
Step 2: edit, / member/config.php add code under require_once (DEDEINC.'/dedetemplate.class.php');
If ($cfg_anquan_cc = ='Y') {/ / php anti-CC attacks refreshing the page more than 5 times in 3 seconds will point to the native / / www.jb51.net/404.htm $P_S_T = $t_array [0] + $t_array [1]; $timestamp = time (); session_start (); $ll_nowtime = $timest if (session_is_registered ('ll_lasttime')) {$ll_lasttime = $_ SESSION [' ll_lasttime'] $ll_times = $_ SESSION ['ll_times'] + 1' ll_times'] = $ll_times;} else {$ll_lasttime = $ll_nowtime;$ll_times = 1 'll_times'] = $ll_times;$_SESSION [' ll_lasttime'] = $ll_lasttime;} if (($ll_nowtime-$ll_lasttime) = 5) {header (sprintf ("Location:% s",'/ / www.jb51.net/404.htm')); exit }} else {$ll_times = 0 * This is the end of the way to prevent dede website DDos from being attacked. I hope the above content can help you to some extent, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.