区分鼠标点击机器人和人类鼠标点击之间 [英] Differentiate Between Robot mouseclick and human mouse click

查看:187
本文介绍了区分鼠标点击机器人和人类鼠标点击之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我在线上运行的小程序,我想确保人们不能使用java类机器人操作的小程序。我知道,雅虎确实这几个自己的游戏平台,我想知道是否有人知道他们如何完成它。

I have an applet that I'm running online and I want to make sure people can't use the java Robot class to operate the applet. I know that yahoo does this on several of their game platforms and I was wondering if anyone knew how they accomplished it.

推荐答案

观看鼠标移动,并确保你没有看到跳跃从一个地方到另一个地方,但随着时间的推移而不是运动。太阳/ Oracle的J2SE教程演示如何跟随鼠标移动事件:的http://download.oracle.com/javase/tutorial/uiswing/events/mousemotionlistener.html

Watch mouse movement, and make sure you're not seeing "jumps" from one place to another, but movement over time instead. Sun/Oracle's J2SE tutorials show how to follow mouse movement events: http://download.oracle.com/javase/tutorial/uiswing/events/mousemotionlistener.html

请注意,这将潜在地不能检测机器人和像在触摸屏上的东西的人,或片剂输入装置之间的差异。

Keep in mind that this would potentially fail to detect the difference between a robot and a person on something like a touch screen, or tablet input device.

还有一点要留意的是用户是否点击相同的像素,或者只是在同一地区。人类是相当IM precise,机器人一般不会,除非编程为。

One more thing to watch for is whether the user is clicking the same pixel, or just in the same vicinity. Humans are fairly imprecise, robots generally aren't unless programmed to be.

我也放了个手势记录良好的措施,编译此信息,并跟踪用户的实际动作。如果你怀疑作弊的人,然后你可以看一下他们的实际移动鼠标模样,和比较,与已知的人。这会给你的,你需要寻找比我们任何一个能拿出了我们的头顶部有什么更好的主意。

I would also put in a gesture logger for good measure that compiles this information, and keeps track of the actual movements of your users. If you suspect someone of cheating, you can then look at what their actual mouse movements looked like, and compare that with a known person. That will give you a better idea of what you need to look for than any of us can come up with off the tops of our heads.

这篇关于区分鼠标点击机器人和人类鼠标点击之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆