I went to send a private message on Twitter for the first time in probably 6+ years, and was made to do some human verification thing through a third party service.
Continue reading post "#4268"captcha posts
Recaptcha and prototype.js conflict
One of Cogneato’s clients noticed that Recaptcha wasn’t working on their site. The checkbox wouldn’t check at all. I noticed that there was an error like “Unexpected token in JSON at position 0” in the browser’s console log. Since this was one of our really old sites, I figured it might have some sort of inadequate polyfill for JSON.parse()
. I saw that the site was using Prototype.js, so I looked through the script to see if it was overriding that method, but it wasn’t. That did put me on the right track, though, to find the Stackoverflow answer that solved it for me.
Prototype was overriding the now browser standard reduce()
method of Array.prototype
with its own, incompatible functionality. The solution was simply to remove that method from the “prototype.js” file. We weren’t using the special Prototype functionality anywhere, so this didn’t cause a problem. If we were, we’d probably have to duck punch the browser’s functionality to handle both method signatures.
reCaptcha solved by bots?
Some presumed bots figured out the reCaptcha (version 2) we protect forms with at Cogneato.
Continue reading post "reCaptcha solved by bots?"Recently, one of Cogneato’s client’s site donate form was submitted thousands of times, presumably to fraudulently test credit card numbers.
Continue reading post "#2907"