Live data from Hacker News

Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

capjs.js.org

21–30 of 125 posts

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#21

Why not make this contribute to something greater, like scientific grid computing, or a charitable bitcoin donation? Instead we're just burning a few watts to slow down crawlers.

Do you have an example of scientific grid computing that is expensive to compute but cheap to verify? Those are the properties this needs.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#22
post #19

I don't mind captchas to protect forms and such, but given that so many sites want captchas solved for the first GET request, I really wonder how much more CO2 this is going to produce. And when I see "invisible mode", I'd really like to ask the authors if they think their work is a net-positive for the world.

"invisible mode" in CAPTCHAs are great for login forms. In the background the captcha runs. If it passes, the user doesn't need to be bothered with it. If it doesn't, the user is presented the standard captcha.

I agree I hate the CF captcha popups, but I think this is a result of AI scraping. GET requests can be expensive on dynamic sites with infinite paths — like a git host.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#23
> @cap.js/solver is a standalone library that can be used to solve Cap challenges from the server. Doesn't this defeat the purpose of Cap? Not really. Server-side solving is a core use case of proof-of-work CAPTCHAs like Cap or altcha. It's about proving effort, not necessarily involving a human.

I like this. Allows for reasonable bots like IA without the mindless wasteful AI scrappers.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#24
I hate to say it because this kind of sentiment is now wildly unfashionable, but this is an actual example of where we should be using crypto. We need the ability to time-lock a very small amount of money that we get back later in order to access a resource.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#25

Why not make this contribute to something greater, like scientific grid computing, or a charitable bitcoin donation? Instead we're just burning a few watts to slow down crawlers.

Because the overhead of orchestrating and distributing the problem would be much larger than the amount of work you can do in 1 second?

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#26
post #4

What does proof-of-work mean here and what makes it easy for humans and hard for bots?

Think of crawlers: a crawler typically makes hundreds or thousands of requests per second. The owners of the crawler then sell this data for X$, or gain X$ profit. Proof of work adds a very small cost to each individual request, increasing the cost of crawling to a number higher than X. Because actual humans make very few requests, we don’t notice the increase in cost.

When you use a captcha, you presumably want to defeat someone curling your CreatePost endpoint, not just make it more annoying to do it at only botnet scale.

This captcha still lets all traffic through. Except now you waste the battery of honest users.

Even HN proponents of the idea don't use it on their own sites.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#28
post #4

What does proof-of-work mean here and what makes it easy for humans and hard for bots?

It's equally easy for both. But people using broswers only do it a few times, while bots need to do it many times. A second for a human every X pages is not much, but it's a death-knell for the general practice of bots (and they can't store the cookies because you can rate-limit them that way). Imagine scrapping thousands of page, but with a X>1 second wait for each. There wouldn't be a need to use such solution if c…

So is the solution to stymying bots to just add a page load delay of a second or two? Enough that people won't care, but it doesn't scale for bots?

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#29

Earlier quoted context omitted.

Think of crawlers: a crawler typically makes hundreds or thousands of requests per second. The owners of the crawler then sell this data for X$, or gain X$ profit. Proof of work adds a very small cost to each individual request, increasing the cost of crawling to a number higher than X. Because actual humans make very few requests, we don’t notice the increase in cost.

When you use a captcha, you presumably want to defeat someone curling your CreatePost endpoint, not just make it more annoying to do it at only botnet scale. This captcha still lets all traffic through. Except now you waste the battery of honest users. Even HN proponents of the idea don't use it on their own sites.

I rather see something like anubis than some unsolveable captcha. I never understood the battery-argument, I recon my screen uses more energy during pow-solving than it takes my phone to solve these pows.

Re: Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

#30

Earlier quoted context omitted.

It's equally easy for both. But people using broswers only do it a few times, while bots need to do it many times. A second for a human every X pages is not much, but it's a death-knell for the general practice of bots (and they can't store the cookies because you can rate-limit them that way). Imagine scrapping thousands of page, but with a X>1 second wait for each. There wouldn't be a need to use such solution if c…

So is the solution to stymying bots to just add a page load delay of a second or two? Enough that people won't care, but it doesn't scale for bots?

Just adding a delay wouldn't achieve anything because bots can just do something else while they wait, whereas PoW requires them to actively spend their finite resources before they can continue doing whatever they want to do.
Post reply on HN