TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How not to design a CAPTCHA

310 点作者 DrewHintz将近 14 年前

14 条评论

Slackwise将近 14 年前
I work in medical IT. You'd be surprised how many <i>government</i> sites do similar.<p>An example would be <a href="https://sso.state.mi.us/som/dch/enroll/reg_page1.jsp" rel="nofollow">https://sso.state.mi.us/som/dch/enroll/reg_page1.jsp</a> (You can enter any fake name/email, this is only step one of the registration script. The next page has the captch in question.)<p>The captcha is plaintext, right on the page. The data from the captcha isn't even sent to the server, it is processed <i>locally</i> via JavaScript.<p>So, the bots don't even have to do anything, but humans have to input a meaningless number...<p><pre><code> &#60;input type="text" name="inputNumber" class="entry-field" size="5" tabindex="3"&#62; &#60;!-- ... --&#62; document.write('&#60;div id="layerNum" class="verifyNumber" align="center"&#62;'); document.write('&#60;b&#62;'+str+'&#60;/b&#62;'); document.write('&#60;img src="generateGIF.jsp?number='+str+'"&#62;'); document.write('&#60;/div&#62;'); document.write('&#60;input size="5" type="hidden" name="rdNumber" value="'+str+'"&#62;'); &#60;!-- ... --&#62; &#60;input type="submit" value="Continue" name="submit" onclick="return Valid();"&#62; &#60;!-- ... --&#62; function Valid(){ // ... if(chkRandomNumber()){ return true; }else{ return false; } // ... } function chkRandomNumber(){ str1=document.all.rdNumber.value; str2=document.all.inputNumber.value; if(str1!=str2){ alert("Please check and type the number as shown in the box"); return false; }else{ return true; } }</code></pre>
评论 #2756059 未加载
sthatipamala将近 14 年前
Completely OT: I find it interesting that this post and several other HN posts this week are hosted on Google Plus. I definitely would not have predicted that G+ would encroach on the LiveJournal/Tumblr space.
评论 #2756035 未加载
评论 #2756276 未加载
评论 #2757890 未加载
评论 #2756110 未加载
评论 #2758294 未加载
yid将近 14 年前
If anyone ever wondered what the phrase "cargo cult science" referred to, this is a prime example. They're going through all the motions, but sadly their understanding of the universe is gratuitously flawed.
评论 #2756817 未加载
RyanMcGreal将近 14 年前
On a site I administer that used to be deluged in spam, I managed to eliminate it with a three-pass filter:<p>1. Simple mathematical question, e.g. "What do you get if you add five and three?" Answer is processed on the server.<p>2. Hidden form field that is supposed to remain blank.<p>3. Blacklist of common spam words.
评论 #2756622 未加载
评论 #2756719 未加载
评论 #2756847 未加载
评论 #2756300 未加载
评论 #2757258 未加载
评论 #2756679 未加载
评论 #2757175 未加载
评论 #2756730 未加载
alexitosrv将近 14 年前
If you are in this, maybe you could find interesting this review of a paper from googlers to approach a CAPTCHA design, in which humans are asked to select the right image rotation: <a href="http://glinden.blogspot.com/2009/05/exploiting-spammers-to-make-computers.html" rel="nofollow">http://glinden.blogspot.com/2009/05/exploiting-spammers-to-m...</a><p>As always, one of the most interesting part of truly great CAPTCHA systems is that they are advancing the state of the art in image recognition. But on the other hand we still have scams like this, and no real solutions.
ghurlman将近 14 年前
Sony... some part of me had really hoped that they would overreact to the hacking movement against them, and lock themselves down like Ft. Knox.<p>Instead, it would seem they're taking the "we'll get hacked anyway, so let's not waste our time" approach.
评论 #2756434 未加载
adamtulinius将近 14 年前
A few years ago, or so i think, people went all crazy talking about a replacement for captcha's: Show a range of images, and make the user pick the image described by a block of text.<p>How come nobody adopted that approach?
评论 #2755963 未加载
评论 #2756496 未加载
评论 #2755928 未加载
评论 #2755941 未加载
评论 #2756598 未加载
desaiguddu将近 14 年前
Need help for Open Sourcing the CAPTCHA research project. I have covered few points of CAPTCHA design in my presentation.<p>Here is my CAPTCHA research paper:<p><a href="http://news.ycombinator.org/item?id=2754436" rel="nofollow">http://news.ycombinator.org/item?id=2754436</a><p><a href="http://www.slideshare.net/desaiguddu/drag-and-drop-captcha-a-better-approach-to-captcha" rel="nofollow">http://www.slideshare.net/desaiguddu/drag-and-drop-captcha-a...</a>
mixmastamyk将近 14 年前
Jesus, rootkits, psn, and now plaintext captchas ... the dev/it clowns at sony need to be fired en masse.
dfc将近 14 年前
On the subject of terrible captcha systems. I found the following gem while looking for OSS games for linux:<p>"You are born into WHAT? (answer is one english word)* [1]<p>It is not entirely clear to me what the expected answer is. A google search for "you are born into" does not return any answer that is clearly correct. If I had to guess I would go with "sin" but I am hoping that nobody would be so ignorant as to design a captcha system that assumes a certain cultural/religious background.<p>[1] <a href="http://garden.sourceforge.net/drupal/?q=image/tid/3" rel="nofollow">http://garden.sourceforge.net/drupal/?q=image/tid/3</a>
snorkel将近 14 年前
What about just asking the user "Why would a benevolent God allow evil to exist?" and then the server checks if the answer mentions "freewill"
Turing_Machine将近 14 年前
A <i>slightly</i> less clueless (but still clueless) approach to CAPTCHA design is to 1) make the CAPTCHA case-sensitive, 2) use letters for which the lower-case representation is very similar to upper-case, and/or use both zero and the letter O, 1 and the letter l, and so on, 3) use an image munging algorithm that makes it next to impossible to disambiguate the cases in 2).
评论 #2755879 未加载
评论 #2757299 未加载
评论 #2756121 未加载
评论 #2756143 未加载
Kwpolska将近 14 年前
DON'T use a bloody CAPTCHA.
rlf将近 14 年前
I can't believe Google is criticizing how Sony does CAPTCHAs when I've been complaining for years about how difficult Google's are to read. But as to their point, based on Sony's recent security issues, it doesn't sound like Sony has a very good IT department.
评论 #2756440 未加载