| | @@ -1390,55 +1390,10 @@ |
| 1390 | 1390 | */ |
| 1391 | 1391 | void page_test_env(void){ |
| 1392 | 1392 | webpage_error(""); |
| 1393 | 1393 | } |
| 1394 | 1394 | |
| 1395 | | -/* |
| 1396 | | -** WEBPAGE: honeypot |
| 1397 | | -** This page is a honeypot for spiders and bots. |
| 1398 | | -*/ |
| 1399 | | -void honeypot_page(void){ |
| 1400 | | - unsigned int uSeed = captcha_seed(); |
| 1401 | | - const char *zDecoded = captcha_decode(uSeed, 0); |
| 1402 | | - int bAutoCaptcha = db_get_boolean("auto-captcha", 0); |
| 1403 | | - char *zCaptcha = captcha_render(zDecoded); |
| 1404 | | - style_header("I think you are a robot"); |
| 1405 | | - @ <p>You seem like a robot.</p> |
| 1406 | | - @ |
| 1407 | | - @ <p>Is that incorrect? Are you really human? |
| 1408 | | - @ If so, please prove it by transcribing the captcha text |
| 1409 | | - @ into the entry box below and pressing "Submit". |
| 1410 | | - @ <form action="%R/login" method="post"> |
| 1411 | | - @ <input type="hidden" id="u" name="u" value="anonymous"> |
| 1412 | | - @ <p> |
| 1413 | | - @ Captcha: <input type="text" id="p" name="p" value=""> |
| 1414 | | - @ <input type="submit" name="in" value="Submit"> |
| 1415 | | - @ |
| 1416 | | - @ <p>Alternatively, you can <a href="%R/login">log in</a> using an |
| 1417 | | - @ existing userid. |
| 1418 | | - @ |
| 1419 | | - @ <p><input type="hidden" name="cs" value="%u(uSeed)"> |
| 1420 | | - @ <div class="captcha"><table class="captcha"><tr><td>\ |
| 1421 | | - @ <pre class="captcha"> |
| 1422 | | - @ %h(zCaptcha) |
| 1423 | | - @ </pre></td></tr></table> |
| 1424 | | - if( bAutoCaptcha ) { |
| 1425 | | - @ <input type="button" value="Fill out captcha" id='autofillButton' \ |
| 1426 | | - @ data-af='%s(zDecoded)'> |
| 1427 | | - builtin_request_js("login.js"); |
| 1428 | | - } |
| 1429 | | - @ </div> |
| 1430 | | - free(zCaptcha); |
| 1431 | | - @ |
| 1432 | | - @ <p>We regret this inconvenience. However, robots have become so |
| 1433 | | - @ prolific and so aggressive that they will soak up too much CPU time |
| 1434 | | - @ and network bandwidth on our servers if allowed to run unchecked. |
| 1435 | | - @ Your cooperation in demonstrating that you are human is |
| 1436 | | - @ appreciated. |
| 1437 | | - style_finish_page(); |
| 1438 | | -} |
| 1439 | | - |
| 1440 | 1395 | /* |
| 1441 | 1396 | ** Webpages that encounter an error due to missing or incorrect |
| 1442 | 1397 | ** query parameters can jump to this routine to render an error |
| 1443 | 1398 | ** message screen. |
| 1444 | 1399 | ** |
| 1445 | 1400 | |