News for hackers. Stuff that matters.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by melissalobos on Wednesday January 19, 2022 @10:38AM (#29994972)
Unfortunately the example problems are simple enough to be solved with AI. As a test I ran two of them by CoPilot, and it solved them instantly. I like the idea, but would want something more difficult as a captcha since it is easy for bots but hard for a human.

Maybe a better approach would be to have a prompt at the top with unclear specifications, or some kind of riddle instead of a function name. It would also be good not to have a bank of problems, since someone could just pattern match on them, but to generate them automatically somehow.

This is a lot more interesting than finding traffic lights though, and the website looks well designed. Thank you for sharing!

Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by tonmoy on Wednesday January 19, 2022 @11:17AM (#29995613)
I thought the goal was to weed out non-programmers not AI - in that regard it seems to be doing what it was designed for I guess
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by charcircuit on Wednesday January 19, 2022 @12:08PM (#29996437)
Captcha stands for: Completely Automated Public Turing test to tell Computers and Humans Apart
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by isaacimagine on Wednesday January 19, 2022 @12:34PM (#29996867)
CAPTPHA?
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by nyberg on Wednesday January 19, 2022 @02:40PM (#29998880)
Would expect the challenges in lisp with such a name
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by fishtoaster on Wednesday January 19, 2022 @12:27PM (#29996737)
Sure, but if you're capable of running CoPilot to write an isEven or reverseString function in JS, it's probably less effort to just write the functions then and there. And either way you're clearly the sort of person this captcha would be intended to allow through, I think.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by nefitty on Wednesday January 19, 2022 @03:41PM (#29999781)
Sometimes I wish I could leave the yaks alone. Most of the time I love it lol
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by dbavaria on Wednesday January 19, 2022 @01:16PM (#29997650)
If you could wrangle AI to solve this problem for you, I'm sure you wouldn't have any issues solving the captcha manually. Hence the CodeCaptcha still works!
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by klyrs on Wednesday January 19, 2022 @02:01PM (#29998357)
No. If one person can wrangle AI to solve the problem, it's an easy step to solve it in a bot-farm. Hence, the CodeCaptcha is entirely broken.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by vorticalbox on Wednesday January 19, 2022 @03:07PM (#29999269)
> Sometimes you want to share a link (like job postings, google forms, your project, a secret sub-page etc) to programmers only.

It wasn't developed to keep AI and bots out but to only let in programmers

Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by abraham on Wednesday January 19, 2022 @05:43PM (#30001494)
> This service let's you do that while also preventing abuse and spam.

https://www.codecaptcha.io/

It's not just about programmers.

Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by penjelly on Wednesday January 19, 2022 @11:17PM (#30004546)
using copilot is not technical or difficult. paste the challenge in comments and hit tab or enter and its done (or not depending on copilot).
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by MattGaiser on Wednesday January 19, 2022 @11:46AM (#29996086)
Is copilot looking for the function name and using that to solve it? Might just change that into a random string.

function deliberatelyMisleadingString {

}

Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by Eduard on Wednesday January 19, 2022 @12:33PM (#29996852)
But then no one knows which problem to solve.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by MattGaiser on Wednesday January 19, 2022 @12:36PM (#29996908)
You can have the function requirements in the instruction text. So instead of isNumberEven, have "write a function that returns whether a number is evenly divisible by two."
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by protoax on Wednesday January 19, 2022 @12:46PM (#29997098)
Copilot could absolutely solve the task given the instructions as a comment that's stated above. Unfortunately the gap between AI's capabilities and a task humans can solve quickly is super thin. You also have to constantly evade advancements in computer vision for the current type of captchas, such as FunCaptcha implementing swirls and animals in certain rotations.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by 2457013579 on Wednesday January 19, 2022 @04:02PM (#30000067)
Reminds me of one of my favorite quotes about trash in Yosemite.. "There is considerable overlap between the intelligence of the smartest bears and the dumbest tourists."

> Back in 1980s, Yosemite National Park was having a serious problem with bears: They would wander into campgrounds and break into the garbage bins. This put both bears and people at risk. So the Park Service started installing armored garbage cans that were tricky to open—you had to swing a latch, align two bits of a handle, that sort of thing. But it turns out it's actually quite tricky to get the design of these cans just right. Make it too complex, and people can't get them open to put away their garbage in the first place. Said one park ranger, "There is considerable overlap between the intelligence of the smartest bears and the dumbest tourists."

Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by dspillett on Thursday January 20, 2022 @05:52AM (#30007252)
If the function name is an issue, call it “captchaTestFunction” and include a comment to the effect that “this function should act like a function called theRealFunctionName”. Though that would be easy to automate around if anyone cared to.
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by pelagicAustral on Wednesday January 19, 2022 @05:11PM (#30001031)
Yeah, well can't imagine solving an np-hard challenge just to get rickrolled afterwards...
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by Lamad123 on Wednesday January 19, 2022 @03:06PM (#29999241)
Does this copilot solve codilty quizzes?
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by asadlionpk on Wednesday January 19, 2022 @10:54AM (#29995245)
Thanks! All good suggestions!
Re:Show HN: CodeCaptcha - Hide web links behind coding chall... by splintercell on Thursday January 20, 2022 @05:22AM (#30007028)
Do, fix this halting problem instead.