In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to prevent the dedecms website DDos from being attacked. I hope you will gain a lot after reading this article. Let's discuss it together.
Step 1: enter the background, system-"add a new variable name: cfg_anquan_cc
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 will point to native / / www.jb51.net/404.htm if you refresh the page more than 5 times in 3 seconds
$P_S_T = $t_array [0] + $t_array [1]
$timest amp = time ()
Session_start ()
$ll_nowtime = $timestamp
If (session_is_registered ('ll_lasttime')) {
$ll_lasttime = $_ SESSION ['ll_lasttime']
$ll_times = $_ SESSION ['ll_times'] + 1
$_ SESSION ['ll_times'] = $ll_times
} else {
$ll_lasttime = $ll_nowtime
$ll_times = 1
$_ SESSION ['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
$_ SESSION ['ll_lasttime'] = $ll_nowtime
$_ SESSION ['ll_times'] = $ll_times
}
}
After reading this article, I believe you have a certain understanding of the methods to prevent dedecms website DDos from being attacked. You want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.