How Git topics use the garbage comment interception function

» Git Tutorial » How Git topics use the garbage comment interception function

This article briefly introduces the garbage comment function of git theme. I hope it can be used by friends in need

Git主题如何使用垃圾评论拦截功能-极客公园

preface

I didn't plan to write this article at first, but seeing some users use the git theme and then ask how to block spam comments or install plug-ins to block spam comments every day, I felt particularly painful, so I slanted this article to teach you.

Procedure

First, enter the background of the theme and enter the article settings
Git主题如何使用垃圾评论拦截功能-极客公园

Then you can see the options of spam comments
Git主题如何使用垃圾评论拦截功能-极客公园

Here's a brief introduction
First, garbage comments generally have foreign languages, and the first must be selected;
Second, mandatory. This is the focus of spam comment interception, mainly for user-defined interception;
Third, the general garbage comment will leave a link, which can also be selected, but it depends on your specific situation

Depth interception

According to the above selection, we can intercept a lot of junk comments, but sometimes there are some people who have missed the net. So we can use custom interception. The second one selected in the above step is useful here. Sometimes junk comments are advertised, and we can intercept them according to the commenter's IP address, email address, website, and comment content, This is much easier. We open WordPress settings - discussion, see the input box of the comment blacklist, and we enter the keywords we need to block in it. Originally, this input box function only identifies keywords but does not block them. We strengthen this input box to make it have the function of blocking
Git主题如何使用垃圾评论拦截功能-极客公园

As shown in the figure, the following keywords have become my blacklist

 101.26.235.70 xmten 114.231.65.219 218.28.140.186 221.204.241.24 114.231.67.56 220.200.48.183 101.26.235.171 14.108.178.229 Discount Suppress this message product Good article excellent articles chinabomeiban 14.108.146.156 Marketing 120.15.80.191 60.9.141.66 words flow from the mouth as from the pen of a master concise and comprehensive xiaohuamian helanwang Clear content and viewpoint Content is as precious as gold Foreign Language School
To test the effect of blocking spam comments, you can try to take blacklist words with your comments to see how it will work

Interception effect

Comment content blocking

Git主题如何使用垃圾评论拦截功能-极客公园

Web address and domain name blocking

Git主题如何使用垃圾评论拦截功能-极客公园

--End--

Post reply

Your email address will not be disclosed. Required items have been used * tagging

15 Replies to "How Git Topics Use the Garbage Comment Interception Function"

    1. @ Dreamer The reason why the git theme comment is stuck is that the email configuration is not good. It should be that the function of sending email to notify the webmaster after checking the comment, but if the email is not well configured, it will be sent unsuccessfully and wait for the results to return, and the webpage will be stuck. Method 1 solves the configuration problem, and method 2 removes the email notification function.

  1. After testing, it should be wp includes/comment.php, about 1983 lines of do_action ('comment_post ', $comment_ID, $commentdata ['comment_approved'], $commentdata); The email sent caused the card to submit comments. I hope the blogger can modify it...