それ、うまいのか?

... 記憶の残滓

What color is a blue apple ?

この質問。

What color is a blue apple? の答え

http://q.hatena.ne.jp/1429765628

直観は過たない はずがない

頭の中には、「blue apple」という品種があるのか、と浮かぶ。
ブルーと名がついているけど、紫だよねえ、というような答えか。

まずは、Google でフレーズ検索。
"blue apple" - Google 検索

引っかかるのは、店の名前とかIDとか。
画像の方にも実物っぽいのが見当たらない。

二の矢

英語圏頓智か何かなのかも、と思いつく。
やっぱり、Google でフレーズ検索。
"what color is a blue apple" - Google 検索

検索結果のトップは知恵袋。
What color is a blue apple? の答えは? - What color is a blue appl... - Yahoo!知恵袋
知恵袋らしい回答が付いている :-)
彼も迷える子羊だったか。

ask.fm なんかでも似たような塩梅。
If a green apple is red, What color is a blue apple? | ask.fm/MyGamingSucks
Evi - an Amazon Company

四つ目がこれ。Solution とかいう文字が、答えに近づいてる感がある。
Learn about who we are and what we do - Level9SolutionsLevel9Solutions
ん? どこに書いてある?
ソースを見ても、"what color is a blue apple" の文字列がない。

Google キャッシュの方を見ると、あった。

"Help us prevent spam by answering the question below"
キャッシュじゃない方の画面ではこうなってる。

ふうん。bot 除け(CAPTCHA の類)なのか。

他にも気になるのが引っかかってる。

* trick questions
- logic questions (“What color is a blue apple”)
- mindpixel questions (“Is an elephant bigger than New York?”, “Is water dry?”, “Is the sky green?”)
- deduction questions (“How many legs do two cats have?”)
- decision questions (“what is the difference between a dog and a handkerchief?”)

Building a Chat engine...some preliminary questions | Platforms | Development | AI Zone - AI Forum for chat bot, virtual agent, virtual assistant, virtual human, chatbot & chatterbot developers

書かれているのは bot (人口無能?)の開発についてという感じで、CAPTCHA の話とは違うが、ゴールが見えた気がする。
が、このキーワードではここまで。

百里を行く者は九十を半ばとす

気を取り直して、こんなキーワードで検索。
prevent spam question - Google 検索

トップがこれ。

Effective Solutions
At this time, the below solutions seem to be most effective when fighting spambots.

Q&A CAPTCHA
At this time, the Q&A CAPTCHA plugin seems to be the most effective single solution against spambots (and some human spammers). For this technique to be effective, you must use simple but non-obvious question and answer combinations. For instance, "Who do you see in the mirror?" is an effective question, while "What colour is the sky?" or "2+2 = ?" are not.

phpBB • Preventing Spam in phpBB3

そう、これだよ。

stackoverflow も検索結果には見えているが、三番目のこっちをのぞいてみる。

you could my Logical captcha plugin
http://www.question2answer.org/qa/37749/q2a-logical-captcha-new-free-anti-spam-plugin-v1-0-released

http://www.question2answer.org/qa/38320/how-to-prevent-spam

プラグインってことは、ソースやデータが見られるってことかな。

リンクをたどった先がここ。
http://q2astore.com/product/logical-captcha/

Free と書いてはいるものの "Download" のボタンは無く、"Add to cart" の文字のみ。
いいや、探すから。
"logical captcha" - Google 検索

なんだ、GitHub にあるではないの。
q2a-logical-captcha/qa-logical-captcha.php at master · amiyasahu/q2a-logical-captcha · GitHub

ん、ん。
他のサイトにリクエストを出してるだけじゃん。
そういえば、さっきのページに "based on Text Captcha API" とか書いてあったわ。

Festina lente !

TextCaptcha: textual CAPTCHA challenges
すぐに PHPサンプルソースが目に入る。
Web API なのね。

http://api.textcaptcha.com/example.json

{"q":"10 plus three is what?","a":["c51ce410c124a10e0db5e4b97fc2af39","422ecc084f2458defc620ecebf2a6448"]}

そう、こんな感じだ。
ソースを見れば答えが書いてあるかと思ったけど、そんなわけはないよね。
答えはハッシュ値で持ってるのか。

MD5 の算出は、エンコードマニアックスで。

thirteen → MD5 : 422ecc084f2458defc620ecebf2a6448

http://encodemaniax.com/?charset=utf-8&data=thirteen

13 → MD5 : c51ce410c124a10e0db5e4b97fc2af39

http://encodemaniax.com/?charset=utf-8&data=13

後は、リロードを繰り返して色っぽい質問を探すだけ。

{"q":"The pink shark is what colour?","a":["4a0b0dcedd48f780778d1cd1bb8f9877"]}

pink → MD5 : 4a0b0dcedd48f780778d1cd1bb8f9877

http://encodemaniax.com/?charset=utf-8&data=pink


おしまい。



ああ、すみません。後、もうひとつだけ

こういうのを Q&A CAPTCHA って言うんだそうな。

Q&A CAPTCHA
The most effective CAPTCHA for small sites is the question and answer CAPTCHA. A Q&A CAPTCHA is a question that a website asks a user to answer. The question is something that anyone visiting the site would know, but that a computer program would not know. An example question for a site about seo would be "What does SEO stand for". This question would be easy for the average reader of that site to answer, but any computer program would not be able to do so.

NOTE: questions like "what is 1 + 1" do not work well, because they are often used, and the people who build spambots program them to answer such questions correctly.

However, if your site get's a lot of traffic, spammers will program their robots to answer those questions automatically, and the q&a CAPTCHA will no longer be affective.

How can I prevent spam on sites which I control? - Webmasters Stack Exchange

にしても、気合が入った回答だ >stackoverflow
でも、rel="nofollow" は効果がないよね。
spam bot は書き散らかしていくだけで、効果があるかどうかなんてわざわざ判定しないから。