« Thought I’d something more to say
#792 »

Exams, etc.

Thu Mar 15, 2007 21:34 (UTC -5)

Mid-term exams were this week. I think I got an A on all of them except for Calculus. I’m not so sure about that one. The test was pretty hard, so a B sounds reasonable. That’s not so important, though. What’s more important is the grade for the quarter. I had had a B for most (if not all) of this quarter until this week, when a last-minute test and the grading of a huge assignment (which I did well on) caused my class grade to swell from an 86 to a 91. In a class where my grades often fluctuate (usually in a downward direction) by fractions of a percent, it was a surprising change. I ended up with an A after all.

Speaking of things that have to do with that, I got an e-mail from UF (the college I’m going to go to) about my application to their Honors Program. I had applied without really knowing what was involved, but I figured… well, I really don’t know what I was thinking. I was invited to apply because not everyone can apply. And yesterday I got an e-mail saying that I got in. Still, I want to know: What’s the catch? I know I’ll have to take at least one honors class per semester and maybe I can live in the honors dorm, but what’s the catch? I thought I heard that you have to do a research paper every month or something. Can anyone tell me the sucky things you have to do in the UF Honors Program, if there are any? Surely there must be some.

The non-lurkers of this blog might have already realized that the quesca (QUEstion Spam programs Can’t Answer) that has appeared in the comment form for over two years is now gone. That’s because I’ve found out about more ingenious solutions that don’t require people to consciously prove that they aren’t robots. The not-so-secret secret lies in the differences in which people and programs look at the comment form.

First of all, a program will look at a form and, if it has input fields with promising names, fill it out. A handy trick is to change at least one of the names and make sure that filling out that field is required. I changed name of the field “author” to “personWhosWritingThis” — it makes sense to a human but is probably meaningless to spambots who are looking for commonly used names like “author.” Having changed that field’s name, I created a new field called “author” which you won’t see (except in the unlikely case that your browser doesn’t recognize CSS). You won’t see it, but the robots will because it’s as clear as day in the code. So when the form is processed, it will check to see if the “author” field was filled out. If it was, the submission is blocked and no comment is posted.

Secondly, spambots tend to post comments more quickly than actual human beings, so if you set a speed limit for posting comments, you can catch submissions that are coming in at an inhuman rate. In the comment form, there is now a hidden field (not hidden with CSS like the previous example, but actually input type="hidden") that contains the Unix timestamp from the time the page loaded. When the form is submitted, the time is checked again. If the comment form submission comes only a few seconds after the page loaded, we can be fairly sure that it was a spambot at work. Again, the would-be commenter is greeted with an error message, and their comment is not processed. But just in case it was a real person, the error message tells non-robots to go back and submit the form again after a few moments.

Odds are, you won’t encounter either of these checks, and that’s just the idea. Together, they keep the spam at bay just as well as the quesca did, but with an added bonus of convenience for human readers. Having to prove that you’re human whenever you submit a form is a constant reminder that our future in the War on Spam is bleak. It will probably be a never-ending battle, but at least I have the upper hand this time. (And if you’re interested in learning how to do this for your own blog, this article has more detailed instructions. Or, if you want, I could show you my code.)

It seems that not many people understand DRM. Here’s How to Explain DRM to Your Dad.

On Google Video: Some guys from the British TV show Top Gear go to America and infuriate some rednecks.


6 comments

#1 by kristen: Fri Mar 16, 2007 08:41 (UTC -5)

nathalie told me that kids in the honors dorm have to follow a “lights out” policy. i haven’t heard anything about monthly research papers, though.

#2 by Luke: Fri Mar 16, 2007 11:50 (UTC -5)

I can’t speak for UF, but I know UO and FAU honors students have to do an honors thesis senior year. Honors dorms mostly serve the purpose of keeping yahoos away but there may be other perks. I don’t know.

#3 by Peter: Fri Mar 16, 2007 14:13 (UTC -5)

I forget — did I tell you about the quesca thing or did you find it on the internet yourself. Because I have thought about the exact same idea from a different website and think I told you about it, but I forget. Furthermore, I will do the same thing eventually — I’m lazy.

#4 by Peter: Fri Mar 16, 2007 14:17 (UTC -5)

Postskriptus: I got the idea from a entirely different website with similar content. But I’m pretty sure I shared it with you in the comments once. Maybe not. I’m just curious…

#5 by Jordon: Fri Mar 16, 2007 18:19 (UTC -5)

I think I came up with the idea myself, but I don’t really remember.

#6 by Peter: Sat Mar 17, 2007 09:56 (UTC -5)

I guess not. I couldn’t find my comment. It just is freaky that we had the idea nearly simultaneously.

Leave a Comment

Feel free to join in on the discussion of this post. Keep the following in mind:

  • Don't include links to your commercial web site, or your comment will be summarily deleted. Advertising is not allowed here, so don't waste your time.
  • You can enter your e-mail address if you'd like me to contact you via e-mail. It is never disclosed to anyone else.
  • You can use the following HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> . (Your line breaks will be converted automatically.)
  • Comments will generally be visible immediately. However, if your comment contains spam-like keywords or an unusual number of links, it will be subject to approval before appearing.


Follow the Discussion

Web feed icon Subscribe to the comment feed for this post.

« Thought I’d something more to say
#792 »

Get E-mail Updates

Sub­scribe now, get an e-mail for every new post. No spam, I pro­mise.

Recently on Twit­ter

“It's a beau­ti­ful day, and Kate is here!” (4 days ago)

Fol­low @the­world­of­stuff

RSS

Sub­scribe in your favor­ite reader.

Blog­roll

Stan­dards Com­pli­ance

This page con­sists of valid XHTML + RDFa with valid CSS 3.