Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Stupid URLs

Whenever I see a stupid URL like:

I wonder: Are they actually using a huge VARCHAR to store that digest string as their primary key? And everywhere they need that primary key? What is that a digest of? The article text? A unique integer?

If anything, I hope they map that digest to an integer, and use the integer everywhere internally. But why use such an ugly URL, then? To prevent enumeration? Just add some random junk chars that are tied to the integer, then:


At least it'd be shorter.

Anybody familiar with any of the code for the different content management systems which use MD5 URLs?

(I tried to sleep and failed.)
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.