gpt4 book ai didi

ruby-on-rails - 防止自动机器人向 ruby​​ on rails 应用程序提交表单?

转载 作者:行者123 更新时间:2023-12-04 06:08:34 24 4
gpt4 key购买 nike

什么是修复每天多次提交的表单的好方法?机器人通过它发布各种垃圾?

我有一个带有隐藏字段以及用户名和密码字段的 Beta 注册表单。此 get 每天提交多次,并导致我的 Rails 应用程序中出现错误报告。

是否有合适的 ruby​​ on rails 方法来防止机器人提交我的表单?我知道你可以在前端做各种各样的事情,但大多数技巧似乎都失败了(我使用隐藏字段技巧来检查机器人,他们仍然通过那里一团糟)

编辑#1:

添加自动机器人发布的表单数据。它似乎发布了额外的表单字段,即使它们不存在于表单中也是如此。

  • URL : http://mysite.com/beta * IP address: 91.121.170.197 * Parameters: {"utf8"=>"✓", "authenticity_token"=>"8mvHnQgX0krwnymdOeQgd8AP52H/ZrJKjnKcUBGrcMM=", "betum"=>{"code"=>""}, "name"=>"Bryan", "email"=>"quaker@yahoo.com", "commit"=>"Joignez-vous »", "comment"=>"I need to charge up my phone http://pposchool.com/classes/ \">desirel 50 provided that no more than two of the rotations are involved in non-patient care\n http://sdccpa.com/professionals \">Proventil Hfa Inhaler Cost Goal 6: Promote public health and disease prevention.\n http://hunterdk.com/products-2/ \">cost clomid treatment uk 12. Displays effective nonverbal behaviors (eye contact, body language,\n ", "action"=>"create", "controller"=>"beta"} * Rails root: /srv/myapp/current * Timestamp : 2013-09-03 17:34:10 +0200

最佳答案

如何使用 captcha在表格中。

看看这个simple catcha gem .

关于ruby-on-rails - 防止自动机器人向 ruby​​ on rails 应用程序提交表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18596313/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com