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

DedeCms's methods to prevent mass posting of spam articles, spam comments and registration

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

Share

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

This article will explain in detail the ways to prevent mass sending of spam articles, spam comments and registration on DedeCms. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

How can DedeCms prevent mass posting of spam articles, spam comments and registration?

First, the method of source judgment:

Method 1: the specific method is to add the source judgment to the file under the member directory, the code is:

If (stristr ($_ SERVER ['HTTP_REFERER'], "jb51.net")) {} else {echo'; ShowMsg ('Sorry, there is a problem with your source, if you are sure there is no problem, please contact our script Home!' , 'index.php'); exit ();}

Friendly reminder: replace eyoucms.com and hints with what you want.

Each file in the member directory contains files such as config.php, so we can put the above code into (a string of require_once.) After that

This code means to determine whether the access comes from your own website, if so, follow the original procedure to perform normal registration, or log in, if not, return to the member home page.

Method 2: write down your own question and judge when you publish it. This is repeated in the background setting method. I won't write it first. Let's take a look at the effect that comes with dede.

Second, background setting method

I. Log in to the background "system" to verify security settings. Enable various settings as needed.

Ii, log in to the backend "system" interactive settings to enable various settings as needed

On DedeCms to prevent spam articles, spam comments and registration methods to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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