84 points · by comntr · 7y ago · 49 comments
https://github.com/comntr/http-server/blob/master/src/handle...
Some time ago i did a scroing and visualization of reddit threads, maybe you find it useful, see https://migor.org/reddit/#/discussion/top?url=https:%2F%2Fww...
comntr.github.io#http://foobar.com/
See e.g. at https://mro.name/blog/2009/08/nsdateformatter-http-header/
This will make it impossible for blind people to post a comment. There are ways around it, but one has to be aware of this issue.
Your initial "puzzle" can be solved with 8 characters of JS: eval("23+47").
Your SVG picture can be solved using off-the-shelf OCR like Tesseract.js.
Even very challenging reCAPTCHA reading tests are mostly solvable by spammers.
You'd be better of using something with thousands of expert person-hours behind it, like reCAPTCHA v2.
The puzzle will be sent as an SVG, obviously.
Em.. "off-the-shelf OCR" sounds neat, but anyone who knows such words isn't an average spammer. The goal of basic SVG puzzles is to block 99% of the spammers who just type dumb comments on keyboards. The rest 1% can be taken care of by human mods.
TBH, I don't like the reCAPTCHA-like solutions. They are just annoying from my personal experience and if they rely on any 3rd party service, I'll give them a hard pass for this reason alone. My approach is to use trivial SVG-style captchas with adjustable complexity, e.g. instead of asking "23+34", we can ask "log(32)/log(2)" and effectively filter out everyone except people familiar with math, or "md5(2615), first 7 hex digits" and let in only people familiar with cryptography. Forcing users to detect birds and crosswalks will just make them upset, IMHO.
I used a bunch of one-word-answer questions for over a decade now for sucessful spam prevention — trivial for a determined attacker with the time and resources to circumvent (and similarily trivial for me to replace with something else).
This also means for a decade I didn’t ship my user data to google.
Unless you are a really juicy target fending off the bots is enough.
> Commento is a proud recipient of the Mozilla Open Source Support award. The $19,200 grant was given in recognition of Commento's contributions to make the internet more privacy-friendly.
That said, it uses akismet for spam control, which I'm not sure how trustworthy it is... But definitely better than nothing!
For high traffic websites, simply the task to review new comments by new users, can be too much work. So needs to be combined with something automatic like Akismet. Based on what I've heard.
A lightweight comments widget built on GitHub issues.