Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于加强机器人评论拦截的建议 #870

Open
kanodaisuki opened this issue Apr 4, 2024 · 5 comments
Open

关于加强机器人评论拦截的建议 #870

kanodaisuki opened this issue Apr 4, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@kanodaisuki
Copy link
Contributor

发生了什么?

image

如上图所见,是机器人发布的垃圾评论。主题已经开启了【页面评论区域机器人验证】,但似乎未能起到有效的阻挡作用。

原因分析

image

上图是一张iro的评论表单,结合后台评论的内容上看,可以确定一点:机器人填写(勾选)了全部表单内容,并将表单发送到了后台。

image

关于【页面评论区域机器人验证】的功能实现,可以看代码theme_plus.php,代码仅验证了POST请求中是否含有【no-robot】字段,对于填写全部表单内容这种机器人来说,无法起到拦截作用。

改进建议

或许可以复用后台登录的验证码来进行机器人拦截。

@kanodaisuki kanodaisuki added the enhancement New feature or request label Apr 4, 2024
Copy link

github-actions bot commented Apr 4, 2024

@kanodaisuki,感谢你给 sakurairo 提出了 issue。ヾ(≧▽≦*)o
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@ImKK666
Copy link

ImKK666 commented Apr 5, 2024

上个CF盾 一般的机器人肯定是不行了 毕竟一条信息1毛钱 可不是啥机器人都用得起的

@KotoriK
Copy link
Collaborator

KotoriK commented Apr 9, 2024

那我们反过来 no-robot为off的时候才允许通过

@kanodaisuki
Copy link
Contributor Author

改了一版,如果觉得还OK的话,我把它推上来。
复用了主题内建的验证码功能。
image

image

Copy link

这个 Issue 已经 30 天没有任何活动了,将被标记为过时 stale。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label May 26, 2024
@KotoriK KotoriK removed the Stale label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants