The Boston Diaries

The ongoing saga of a programmer who doesn't live in Boston, nor does he even like Boston, but yet named his weblog/journal “The Boston Diaries.”

Go figure.

Friday, October 18, 2002

MSN nearly killed my Linux box

And not because I tried dialing up to MSN either. It was a referer string, from their search engine, that nearly killed my Linux box.


A while ago I wrote a program to go through the web log files, pulling out referers from search engines (more or less). It wouldn't quite run through an entire log file before quitting on some input it apparently didn't like. It hasn't bothered me that much until today. So I figured I would run it under the debugger, see what it doesn't like and fix the program.

It's amazing what garbage you get from search engines.

The spec for query strings is pretty straight forward—a series of name/value pairs separated by ampersands—“&” (except perhaps for the last pair) and each name/value pair is in the form of name “=” value. Pretty easy, right?

AOL/UK's search engine was sending a query string with two consecutive ampersands. Fixed that, go on to the next problem.

The dreaded referer string from MSN.

Usually when a variable that has no value is sent, what you get is:


Basically, the name, then the equal sign, and either the end of the query string, or the start (signified by the ampersand) of the next name/value pair. But not MSN.

Nope. You get:


And it was in the process of testing my work around that my Linux box seriously went dead.

Okay, so technically MSN didn't nearly killed my Linux system, my program did.

But still … it's an accessory to attempted murder!


Back to the drawing board.

Obligatory Picture

[“I am NOT a number, I am … a Q-CODE!”]

Obligatory Contact Info

Obligatory Feeds

Obligatory Links

Obligatory Miscellaneous

You have my permission to link freely to any entry here. Go ahead, I won't bite. I promise.

The dates are the permanent links to that day's entries (or entry, if there is only one entry). The titles are the permanent links to that entry only. The format for the links are simple: Start with the base link for this site:, then add the date you are interested in, say 2000/08/01, so that would make the final URL:

You can also specify the entire month by leaving off the day portion. You can even select an arbitrary portion of time.

You may also note subtle shading of the links and that's intentional: the “closer” the link is (relative to the page) the “brighter” it appears. It's an experiment in using color shading to denote the distance a link is from here. If you don't notice it, don't worry; it's not all that important.

It is assumed that every brand name, slogan, corporate name, symbol, design element, et cetera mentioned in these pages is a protected and/or trademarked entity, the sole property of its owner(s), and acknowledgement of this status is implied.

Copyright © 1999-2024 by Sean Conner. All Rights Reserved.