[wordpress插件] Cookies for CommentsCookie的评论

wordpress 插件 文章 2020-04-02 11:30 444 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

This plugin adds a stylesheet or image to your blog’s html source code.

此插件将样式表或图像添加到博客的html源代码中。

When a browser loads that stylesheet or image a cookie is dropped.

当浏览器加载该样式表或图像时,将删除cookie。

If that user then leaves a comment the cookie is checked.

如果该用户随后发表评论,则检查cookie。

If it doesn’t exist the comment is marked as spam.

如果不存在,则该评论将标记为垃圾邮件。

The plugin can also check how long it took a user to enter a comment.

该插件还可以检查用户输入评论所花的时间。

If it’s too fast it’s probably a spam bot.

如果速度太快,则可能是垃圾邮件机器人。

How fast can a legitimate user enter their name, email, web address and enter a well thought out comment?

合法用户可以多快输入他们的姓名,电子邮件,网址并输入经过深思熟虑的评论?

For the adventurous, add these lines to your .htaccess and it will block spam attempts before they ever get to WordPress.

对于喜欢冒险的人,请将这些行添加到您的.htaccess中,它将阻止垃圾邮件尝试,然后再使用WordPress。

Replace the Xs with the cookie that was set in your browser after viewing your blog.

查看博客后,将X替换为在浏览器中设置的cookie。

You can also find the cookie value by examining the page source code and looking for “css.php?k=XXXXXXXXXXXXXXXXXXX”.

您还可以通过检查页面源代码并查找“ css.php?k = XXXXXXXXXXXXXXXXXXXXXX”来找到cookie值。

Make sure the lines go above the standard WordPress rules.

确保这些行超出了标准WordPress规则。

    RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$    

  RewriteCond%{HTTP_COOKIE}!^。* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。* $    

RewriteRule ^wp-comments-post.php - [F,L]

RewriteRule ^ wp-comments-post.php-[F,L]

If you use WordPress MU, replace wp-comments-post.php above with wp-signup.php to block spam signups.

如果您使用WordPress MU,请将上面的wp-comments-post.php替换为wp-signup.php以阻止垃圾邮件注册。

    RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$    

  RewriteCond%{HTTP_COOKIE}!^。* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。* $    

RewriteRule ^wp-signup.php - [F,L]

RewriteRule ^ wp-signup.php-[F,L]

安装步骤

Copy into your plugins folder and activate.

复制到您的plugins文件夹并激活。

If you are using a caching plugin such as WP Super Cache make sure you clear the cache after enabling

如果您使用的是诸如 WP Super Cache 之类的缓存插件,请确保在启用后清除缓存

this plugin.

这个插件。

下载地址
https://downloads.wordpress.org/plugin/cookies-for-comments.0.5.5.zip
-EOF-

AI助手支持GPT4.0