donglan7594 2014-09-30 12:38
浏览 17

当点击图像时,机器人会模仿随机的人类行为吗?

Please tell me, could such a Captcha alternative work?

Basically if I use something like this:

<?php
$foo_x=$_POST['foo_x'];
$foo_y=$_POST['foo_y']
?>

<form action="http://foo.com/function/" method="post">
<input type="image" alt="image" src="img.jpg" name="foo"/>
</form>

And so a real user would click at a random X,Y coordinates, which I can then pass to "function" which in turn will send the user to the content, unless it's a bot.

The question is whether a bot that would go to the link specified in action=, would do so via the image - "clicking" on it, and if so then would the bot get a random coordinate or just "click" the exact center or the 0,0 coordinate? Or would it just go to the link directly without triggering $_POST at all? Could a bot be programmed to "click" a random spot on such an image?

Do you know of a better way of achieving such anti-bot image functionality?

Thank you!

  • 写回答

1条回答 默认 最新

  • doumanshan6314 2014-09-30 13:02
    关注

    I hate Captchas, you could write easily a function that can somehow guess if it is a human or a bot ie

    1. Time difference between page load and form submission , user will take longer to submit
    2. Track if mouse is moving for the first ie X seconds , or if TAB key is pressed for users that don't use mouse.
    3. Have a CSS hidden input field , and if it is populated and #1 or #2 returns ALARM than it is a bot Combining 3 of those will get out 99% of bots.
    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP