Finding a robot on the server?

This question expands on my other question about robots and captcha . I did what everyone recommends (thanks everyone!), But is it even possible to detect a robot on the server at all? For example (I'm using Stackoverflow again as a reference): Sometimes when I ask a question, Stackoverflow comes back asking me to check if I am human. However, sometimes this is not the case.

The way Stackoverflow does it, because that's what I want to do: validate the data and, if it looks like a robot, ask the human for validation.

It also needs to be done in Java (preferably), Perl or PHP.

thank

+2


source to share


2 answers


StackOverflow does this by doing the same task too many times too quickly, or doing multiple tasks too quickly.

If you want to emulate this, you can track the number and time of recent requests and make sure everything is within your limits. If not, redirect the CAPTCHA.



Unfortunately I don't have enough Java EE experience to provide any code, but hopefully my approach gives you some ideas.

0


source


A simple method would be to record the activity (clicks, comments, etc.) and then check the frequency and similarity between them. You can usually spot robots by looking for similar tasks that are repeated.



If you're really serious about robot detection, log every keystroke and mouse movement. Regular users have a percentage of errors and uncertainties associated with typing and navigating a site. 100% free user who easily and quickly moves the site (moving the mouse in a straight line from point a to point b), never go to the "back" button, most likely will be a bot.

0


source







All Articles