Wordpress spam comments verification code plug-in

Source: Internet
Author: User
Tags add numbers

I tested many wordpress spam comments verification code plug-ins:

Long string of characters: obviously inconvenient, give up;

It is not convenient to add numbers in English;

If the input error rate is too high, give up;

If you have read the question and select the answer, it is a waste of comments time and you do not have to customize the question and give up;

Drag a pattern to the specified position: troublesome and not fun. Give up;

There is a simple number addition and subtraction: this is the simplest, but you have to change the file code in the topic and give up;

Finally, the wordpress spam comment verification code plug-in "WP Pineapple" is selected, and WP Pineapple adds four fruit images to the comment form, the reviewer can complete the verification by clicking the appropriate fruit as prompted.

After installing the wordpress spam comments verification code plug-in [WP Pineapple], I found that the prompt "fruit selection", "No fruit selection", and "fruit selection error" are displayed in English, therefore, ruile changed the three parts to Chinese, which are:

Before posting a comment, select fruit [Apple = Apple, Banana = Banana, Pineapple = Pineapple, Grapes = grape]

You need to select a fruit before posting a comment. Please return to the selection before posting a comment!

No fruit is selected. Please return and select again!

Tomorrow is the time to witness the miracle! For more information, see this article ~~

Finally, add the verification code plug-in [WP Pineapple], which is the easiest way to prevent wordpress spam comments. Download address:

Http://pan.baidu.com/share/link? Consumer id = 2747743019 & uk = 1530203013

Subsequent comments:

After the WP Pineapple plug-in is installed, spam messages are almost extinct. The only problem is that the background needs to verify the response to the visitor's message.


If you do not want to use the plug-in, follow these steps:


1. Locate the wp-comments-post.php under the wordpress website root directory and rename it (any name ).

2, find the current topic under comments. Php file modify action = "/wp-comments-post.php" method = "post" id = commentform "> The wp-comments-post.php in the code is the name of the previously renamed.

The above method is only for the use of wordpress default comment files, but now many wordpress websites use the ajax comment method produced by Master kan willin. However, the master's work still provides solutions:

Machine spam is basically injected from the wp-comments-post.php of the root directory
(But recent discoveries also showed injection from theme comments-ajax.php)
Countermeasure: make him unable to find a place for injection.
It is best to use Ajax comments to transfer the comment target to another file.
If you are using my Ajax comments, you can rename the comments-ajax.php to the my-comments.php, and then in the js header
Ajax_php_url = js_url.replace ('-ajax. Js','-ajax. Php '),
Also changed
Ajax_php_url = js_url.replace ('comments-ajax. Js', 'My-comments. Php '),
The above my-comments.php is just an example, you can also change to abc. php or xyz. php anyway, you can understand it.
After using ajax, the wp-comments-post.php is useless, you can delete it. Or useful to my-visitors plug-in, can be used to replace it with the plug-in's wp-comments-post.php, can record some information of spam.
This method is mainly used to modify the default wordpress comment file path, so that those group of software can not find the path, naturally there is no way to spam

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.