We have been getting a lot of stupid password requests.
} elsif (length $in{'mailpasswd'}) {
+ if (! $in{'quiz'}) {
+ print "Please answer the quiz question.";
+ exit 0;
+ } elsif ($in{'quiz'} !~ m{^(?:bcp5|rfc1918)$}i) {
+ print "Wrong answer to the quiz question.";
+ exit 0;
+ }
+
read_database();
get_entry();
show_entry();
password:
<p>
+Quiz question vs. stupid robots:
+<br>
+Q. Which IETF document,
+titled "Address Allocation for Private Internets",
+does the G-RIN help implement?
+<br>
+A. <input type=text name="quiz" length=10>
+<br>
<input type=submit name="mailpasswd" value="Mail password."><br>
(The password will be sent to the registered email address for the
entry.)