4 ms·
This is not detecting bots (as per the title), but detecting user agents that execute Javascript and are assumed to be human. Detecting bots with JS knowing th
by pierrefar 16y ago
This is not detecting bots (as per the title), but detecting user agents that execute Javascript and are assumed to be human.
Detecting bots with JS knowing they don't run JS would be quite challenging.
- jules 16y agoThat depends on what you mean by detecting. If you mean recording the fact in a log file then it's definitely possible. You could just log everyone as a bot by default and then remove them from the log if the ajax request comes in.
- patio11 16y agoAssume user #1234 requests a page with an A/B test on it. We hand them the page and a Javascript challenge, and mark them as a bot. If user #1234 successfully passes the Javascript challenge, which if it happens will almost certainly happen within the next few hundred milliseconds, we revise our opinion about their character. Anybody who fails to convince us remains flagged as a bot.
- mike-cardwell 16y agoI don't know if it is currently being done, but it wouldn't be too difficult to write a bot which uses webkit as a backend and supports javascript. For an example, http://code.google.com/p/wkhtmltopdf/ http://code.google.com/p/wkhtmltopdf/ is an application which converts a webpage into a pdf and supports javascript.