Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Methods to prevent DDos from being attacked on dede website

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report