News for hackers. Stuff that matters.
Re:Probably the worst URL scheme ever by masnick on Thursday May 02, 2013 @08:06AM (#5643881)
LinkedIn URLs are by far the worst. For example, the first profile that came up when I searched for Paul Graham:

http://www.linkedin.com/profile/view?id=23081590&authTyp...

Re:Probably the worst URL scheme ever by Peroni on Thursday May 02, 2013 @08:13AM (#5643915)
Some poor PI is going to freak out when he checks his 'recently viewed your profile' stats.
Re:Probably the worst URL scheme ever by joosters on Thursday May 02, 2013 @08:09AM (#5643898)
Yes, all those *2s could easily have been optimised into a left shift operator.
Re:Probably the worst URL scheme ever by masnick on Thursday May 02, 2013 @08:41AM (#5644070)
Oh so the *2s have some sort of meaning beyond random URL garbage? Please explain! I've always been curious.
Re:Probably the worst URL scheme ever by aerique on Thursday May 02, 2013 @09:09AM (#5644212)
No, I think it is just a joke: if you parse "*2" as "times two" you could optimize it in code by shifting the bits left since bit shifting operations are cheaper than multiplication.

#b0001 = 1

#b0010 = 2

#b0100 = 4

#b1000 = 8

Re:Probably the worst URL scheme ever by masnick on Thursday May 02, 2013 @09:13AM (#5644235)
Haha thanks for the explanation.
Re:Probably the worst URL scheme ever by delinka on Thursday May 02, 2013 @09:26AM (#5644291)
And to continue on this tangent, if your code is multiplying by the constant 2 (e.g. "x = z * 2") the compiler's probably going to optimize that into a shift anyway, so just keep the "* 2" to keep future human readers of the code happy.
Re:Probably the worst URL scheme ever by viame on Thursday May 02, 2013 @10:36AM (#5644694)
I was just going to say that! Before I saw this post I was on LinkedIn looking for something, and you simply cannot miss when something like this shows in your address bar:

...gid=3396514&goback=%2Enpv_152562310_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_*1&trk=NUS_JGRP-grp-nm

Re:Probably the worst URL scheme ever by raverbashing on Thursday May 02, 2013 @09:29AM (#5644310)
You can have a public URL for linkedin in the format /in/CustomName

E.g.:www.linkedin.com/in/barackobama

Re:Probably the worst URL scheme ever by smackfu on Thursday May 02, 2013 @11:29AM (#5645128)
Too bad that seems like only an external reference method, and the site never uses those URLs internally.
Re:Probably the worst URL scheme ever by masnick on Thursday May 02, 2013 @11:49AM (#5645264)
Yeah, I want to know what they're doing internally with these insane URLs. It's just ugly -- poor craftsmanship IMHO.
Re:Probably the worst URL scheme ever by mseebach on Thursday May 02, 2013 @12:40PM (#5645614)
Yeah, nothing screams good craftsmanship like armchair-quarterbacking someone else's work that clearly works well.

FWIW, it seems to be some sort of encoded state, essentially HATEOS.

Re:Probably the worst URL scheme ever by smackfu on Thursday May 02, 2013 @01:26PM (#5645929)
Works well?

"Oh you want the URL of your LinkedIn Profile? Don't use the URL in the address bar, silly! Use this other URL we are providing randomly down the page."

Re:Probably the worst URL scheme ever by mseebach on Thursday May 02, 2013 @02:20PM (#5646259)
I was referring to the URL-scheme of the LinkedIn app in general, not just the profile page - I somehow missed that this subthread was only about the profile page. Yes, I agree they dropped the ball completely on that. Especially tragic as they could fix the 80% case with a front-end one-liner (window.history.replaceState).
Re:Probably the worst URL scheme ever by 3825 on Thursday May 02, 2013 @10:51AM (#5644808)
Apparently he is a 3rd connection. o.O
Re:Probably the worst URL scheme ever by cedricd on Thursday May 02, 2013 @08:00AM (#5643845)
The elephant in the room here of course is this: https://news.ycombinator.com/x?fnid=b7VO4wED8MRumCeiX5fCnF
Re:Probably the worst URL scheme ever by ancarda on Thursday May 02, 2013 @08:31AM (#5644008)
I never understood why HN has such a peculiar URL for accessing pages. It times out after a while too, is that to stop crawlers?
Re:Probably the worst URL scheme ever by Robin_Message on Thursday May 02, 2013 @08:36AM (#5644036)
They are ids to lookup closures in a database. They time out to stop the database overflowing ;) It's called continuation-based web development [1], popular with Lisp and Smalltalk-based web servers (because who else has continuations?)

[1] http://en.wikipedia.org/wiki/Continuation#In_Web_development

Re:Probably the worst URL scheme ever by jgrahamc on Thursday May 02, 2013 @09:24AM (#5644284)
There's no database.

EDIT: to all the people arguing with me. Read the source code to Hacker News.

    (= fns* (table) fnids* nil timed-fnids* nil)

    ; count on huge (expt 64 10) size of fnid space to avoid clashes

    (def new-fnid ()
      (check (sym (rand-string 10)) ~fns* (new-fnid)))

    (def fnid (f)
      (atlet key (new-fnid)
        (= (fns* key) f)
        (push key fnids*)
        key))

    (mac afnid (f)
      `(atlet it (new-fnid)
         (= (fns* it) ,f)
         (push it fnids*)
         it))
They are in memory. Which is why they expire randomly when the HN process is restarted.
Re:Probably the worst URL scheme ever by Robin_Message on Thursday May 02, 2013 @10:28AM (#5644640)
That's probably true John. If I may mis-quote Greenspun:

"Any sufficiently complicated Lisp program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of an actual database."

Re:Probably the worst URL scheme ever by kens on Thursday May 02, 2013 @12:08PM (#5645401)
The fnids do not expire randomly due to restarts; they expire when there are too many or they timeout so memory doesn't fill up with these continuations. Personally, I don't like this continuation-based approach since "Unknown or expired link" is a really bad user experience.

Way back I wrote a bunch of documentation on the Arc web server if you want details: http://www.arcfn.com/doc/srv.html Look at harvest-fnids which expires the fnids.

The fnid is an id that references the appropriate continuation function in an Arc table. The basic idea is that when you click something, such "more" or "add comment", the server ends up with the same state it had when it generated the page for you, because the state was stored in a continuation. (Note that these are not Scheme's ccc first-class continuations, but basically callbacks with closures.)

(The HN server is written in Arc, which runs on top of Racket (formerly known as PLT Scheme or mzscheme))

Edit: submitted in multiple parts to avoid expired fnids. Even so, I still hit the error during submission, which seems sort of ironic.

Re:Probably the worst URL scheme ever by scotth on Thursday May 02, 2013 @09:34AM (#5644335)
Depends on what you consider a database.
Re:Probably the worst URL scheme ever by ahknight on Thursday May 02, 2013 @10:09AM (#5644524)
There's always a database.
Re:Probably the worst URL scheme ever by gcr on Thursday May 02, 2013 @10:37AM (#5644703)
Racket (arc's host language) keeps continuations on the filesystem, or you can write your own "stuffer" to do what you want with them (store them in a database or whatever). But you have to keep them somewhere or else (assuming the server uses continuations) you can't keep track of the user's path through your code as they click through links and such.

Racket does have an option to serialize the continuations, gzip them, sign them with HMAC, and then send all of that to the client so the server doesn't have to keep track of anything, but HN doesn't use it.

See http://docs.racket-lang.org/continue/#(part._.Advanced_.Cont... for a quick introduction.

Re:Probably the worst URL scheme ever by epochwolf on Thursday May 02, 2013 @11:59AM (#5645341)
HN doesn't use racket. It's a custom lisp based on scheme.
Re:Probably the worst URL scheme ever by gcr on Thursday May 02, 2013 @03:28PM (#5646622)
Sure it does. HN is written in "Arc":

https://github.com/wting/hackernews

Arc runs on Racket:

http://en.wikipedia.org/wiki/Arc_(programming_language)

See the "OS" section where it says "runs on the Racket compiler"

See also the Arc source code, https://github.com/Pauan/ar/blob/arc/nu/arc Note the "#lang racket" at the top.

Re:Probably the worst URL scheme ever by oh_sigh on Thursday May 02, 2013 @10:24AM (#5644608)
Then where is the data that is associated with "b7VO4wED8MRumCeiX5fCnF" stored? How is that data requested? There certainly is a database, it is just most likely not a traditional database that most people think of.
Re:Probably the worst URL scheme ever by defen on Thursday May 02, 2013 @10:33AM (#5644681)
where is the data that is associated with "b7VO4wED8MRumCeiX5fCnF" stored

In the Racket process that's running the Arc code for news.yc

Re:Probably the worst URL scheme ever by tveita on Thursday May 02, 2013 @11:27AM (#5645115)
Oh, wow. I had assumed that people who visited around the same time got the same next page URL, maybe as part of a caching strategy or something.

This way seems impractical, TBH. Certainly for the user - the expiration a bit of a nuisance, as I'll get it more often than not if I read a couple of stories and then click 'More'.

Re:Probably the worst URL scheme ever by kalmar on Thursday May 02, 2013 @08:37AM (#5644048)
I believe it's a continuation-style server—hence fnid: function id—and the continuations are only kept around in memory for ~5 minutes.
Re:Probably the worst URL scheme ever by lucian1900 on Thursday May 02, 2013 @09:00AM (#5644168)
I never understood why the continuation couldn't instead be addressed by a URL path. It could even get constructed from URL/query data if it moves out of memory, so keeping them in memory would only be a caching mechanism.
Re:Probably the worst URL scheme ever by acdha on Thursday May 02, 2013 @09:48AM (#5644412)
Every continuation framework I've looked at radiates an intense desire to treat the web as something other than what it actually is.
Re:Probably the worst URL scheme ever by pfarrell on Thursday May 02, 2013 @09:43AM (#5644376)
Yes, but the way hn works, the continuations map uri's to browser sessions so they can be expired on a more granular basis than all at once or lru or what have you. I'm guessing here, though, I've not looked through the code.

[addendum] I Reread your comment and realized that wasn't what you meant at all. What would be the benefit of path based uris over query string params in hn's case? I only see how they be equal, not better.

Re:Probably the worst URL scheme ever by lucian1900 on Thursday May 02, 2013 @09:54AM (#5644440)
I meant that the continuation could be identified by (session_id, URL data), and re-created based on this data if it goes missing.

URL data can come from path or query string, it doesn't matter.

Re:Probably the worst URL scheme ever by hackerboos on Thursday May 02, 2013 @08:05AM (#5643878)
True. This hash should be appended like so:

https://news.ycombinator.com/page3/x?fnid=b7VO4wED8MRumCeiX5...

Re:Probably the worst URL scheme ever by waffle_ss on Thursday May 02, 2013 @09:28AM (#5644304)
I think THOMAS (http://thomas.loc.gov/), the search engine provided by the US Library of Congress for searching federal legislation, has the worst URLs I've seen. Here's a random one:

  http://thomas.loc.gov/cgi-bin/bdquery/D?d113:1:./temp/~bdGqLa:@@@T|/home/LegislativeData.php|
And here's a link I got to the Patriot Act (HR 3162):

  http://thomas.loc.gov/cgi-bin/query/D?c107:44:./temp/~c107DgA33R::
Re:Probably the worst URL scheme ever by acdha on Thursday May 02, 2013 @09:45AM (#5644393)
While it's been reskinned, THOMAS dates back to 1995 and the core reflects a much earlier era of web development. It's slowly being replaced with congress.gov which has far more palatable URLs:

http://beta.congress.gov/bill/107th-congress/house-bill/3162

Re:Probably the worst URL scheme ever by smackfu on Thursday May 02, 2013 @11:26AM (#5645112)
Note that these are not even canonical URLs. Both of them now fail with a "Search Timed Out" error.

US Trademark Office has the same issue, there is no way to link to a particular trademark, because the only access is via the search engine and queries time out, e.g.: http://tess2.uspto.gov/bin/showfield?f=doc&state=4802:xt...

Re:Probably the worst URL scheme ever by mseebach on Thursday May 02, 2013 @12:34PM (#5645563)
It's clearly a set of arguments (separated by ':') to a function, i.e. it's a RPC invocation. The first seems to be the session of congress, 113th and 107th. The second, perhaps the nth item in that collections? The third, a temporary filename, probably where the search result is stored, so you don't have to re-run the search which you hit "back". The last bit, probably a later addition that manages breadcrumb navigation.
Re:Probably the worst URL scheme ever by twistedpair on Thursday May 02, 2013 @09:35AM (#5644338)
Making sense of that in linear time would be a great interview question.
Re:Probably the worst URL scheme ever by networked on Thursday May 02, 2013 @11:21AM (#5645072)
The ./temp/~c107DgA33R bit looks like a reference to a cached internal state of the system, so you can probably make about as much sense of it as you can of https://news.ycombinator.com/x?fnid=H1QJE8EOaO2OkA28owXZ4H.
Re:Probably the worst URL scheme ever by h-go on Thursday May 02, 2013 @09:40AM (#5644361)
Why? Surely you'd have to go out of your way to make it that unnecessarily complicated.
Re:Probably the worst URL scheme ever by jnazario on Thursday May 02, 2013 @09:43AM (#5644381)
i have often thought that the THOMAS system was an overt attempt to obfuscating government activities. it's such a pain to use.
Re:Probably the worst URL scheme ever by franze on Thursday May 02, 2013 @08:59AM (#5644164)
i have seen worse.

i.e. sites that show on page with the url http://www.example.com and another page with the URL http://www.example.com and even after another click the URL http://www.example.com with completely new content

and sites, that use a logic like this http://www.example.com/357893857435/sfjsfsfsfd/this-should-b... where http://www.example.com/357893857435/sfjsfsfsfd/this-is-shoul... and http://www.example.com/357893857435/sfjsfsfsfd/tHIS-is-the-s... show the same page, oh and of course http://www.example.com/357893857435/sfjsfsfsfd also shows the same page.

oh, and cases where http://www.example.com/click1/click2/click3/item-id/123 show the same page as http://www.example.com/click1/item-id/123 which show the same page as http://www.example.com/click1/click2/click3/click4/item-id/1...

all of the examples above are far worse than bvb.de

Re:Probably the worst URL scheme ever by tsahyt on Thursday May 02, 2013 @09:07AM (#5644195)
Quite frankly, I despise the use of "SEO URLs" altogether. It's basically a waste of bytes.
Re:Probably the worst URL scheme ever by nkozyra on Thursday May 02, 2013 @09:25AM (#5644285)
Sometimes, sometimes not. You can often compress a lot of

&parameter=value into a simple /value/

rewrite. This - by most accounts - makes it more SEO friendly. Granted, putting full sentences that match an article title is never necessary, but there are a lot of SEO tricks that can make a url not only "nicer" looking but also shorter.

Re:Probably the worst URL scheme ever by jeffasinger on Thursday May 02, 2013 @10:08AM (#5644514)
Some of the best SEO URLs also tend to be human guessable URLs, which is definitely not a waste of bytes.
Re:Probably the worst URL scheme ever by davedx on Thursday May 02, 2013 @09:10AM (#5644215)
Not if you view SEO as genuinely helping search engines to find content in a way that improves the discoverability of web pages.

If it's purely to boost rankings artificially, then yes, I agree.

Re:Probably the worst URL scheme ever by hamoid on Thursday May 02, 2013 @08:47AM (#5644094)
I still think the one used by the Spanish Congress is worse. URL for legal document 162/000609:

http://www.congreso.es/portal/page/portal/Congreso/Congreso/...

Re:Probably the worst URL scheme ever by masklinn on Thursday May 02, 2013 @09:10AM (#5644217)
Legal portals are generally gasbage, here's the french one for Article L511-1 of the environmental code: http://www.legifrance.gouv.fr/affichCodeArticle.do?idArticle...
Re:Probably the worst URL scheme ever by Jhsto on Thursday May 02, 2013 @11:17AM (#5645037)
Legal portals are also many times vulnerable to a form of directory traversal, where you descend the URL scheme by cropping out the last slash. ie. /documents/17683/ would become /documents/. Doing the same thing for parameters can do wonders.

So far I've found login portals to a few banks, teleoperators and to the parliament and military systems of my country. In addition, I've hit several FTP directories of organizations such as my state's public welfare system, which included software and documents.

I sometimes report these incodents as I find them, anonymously and without contact information, since nobody never responds to these reports.

tldr; Long urls can also be dangerous.

Re:Probably the worst URL scheme ever by claudius on Thursday May 02, 2013 @10:02AM (#5644486)
§ 1353 of the BGB (German Civil Code) can be found at http://www.gesetze-im-internet.de/bgb/__1353.html (literally ‘laws on the internet’).
Re:Probably the worst URL scheme ever by mhd on Thursday May 02, 2013 @10:44AM (#5644753)
So close, with minimal effort they could map that to '/bgb/1353'. It seems that dejure.org actually works that way -> http://dejure.org/gesetze/BGB/1353 seems to map to http://dejure.org/gesetze/BGB/1353.html, but they graciously ignore any kind of file extension...
Re:Probably the worst URL scheme ever by claudius on Thursday May 02, 2013 @11:07AM (#5644935)
Well they already managed to get an overview/full-text at /bgb/, so I am quite happy for now…
Re:Probably the worst URL scheme ever by dbbolton on Thursday May 02, 2013 @07:46AM (#5643763)
So, this page is named ?_(null)çô(null)

? How does that even begin to make sense?

Re:Probably the worst URL scheme ever by hosay123 on Thursday May 02, 2013 @08:59AM (#5644161)
It's an underscore followed by 4 bytes, possibly the integer 2650072859 or 468186269. If they're intentionally trying to obfuscate their URLs to prevent crawling, it might be further encrypted somehow.
Re:Probably the worst URL scheme ever by ozh on Thursday May 02, 2013 @08:59AM (#5644154)
How about http://www.tsa.gov/tsa-pre%E2%9C%93%E2%84%A2 ? It's "TSA-Pre✓™" and you have to type in the checkmark and the trademark symbols, otherwise it 404s

Edit: ho, they fixed that and it's redirected. Too bad, that was funny :)

Re:Probably the worst URL scheme ever by ramses0 on Thursday May 02, 2013 @09:18AM (#5644259)
"I can't imagine the skill required to do this without the experience to know it's a bad idea" (can't find the source for this quote, but you should get the sentiment).

...ahhh... found it: """"How do you attain the skills required to do this while not also learning not to?" http://news.ycombinator.com/item?id=4711355 """

Re:Probably the worst URL scheme ever by blcknight on Thursday May 02, 2013 @09:29AM (#5644309)
The way you end up with URL's like http://www.tsa.gov/TSA-Pre✓™ is a CMS system that replaces spaces with dashes in the title to make the URL. No skill required.
Re:Probably the worst URL scheme ever by whalesalad on Thursday May 02, 2013 @10:56AM (#5644844)
Glad to see they finally fixed that with a redirect to a sane url.
Re:Probably the worst URL scheme ever by glyphobet on Thursday May 02, 2013 @09:08AM (#5644206)
It's Latin-1 encoded and then URL-encoded:

>>> import urllib

>>> print urllib.unquote('%1B%E7%F4%9D').decode('latin-1')

çô

Re:Probably the worst URL scheme ever by insteadof on Thursday May 02, 2013 @08:56AM (#5644139)
It was up until last week, but http://www.tsa.gov/tsa-pre✓™ was the canonical version. Now it redirects to the version you don't need to know the ALT keyboard jockeying with.
Re:Probably the worst URL scheme ever by jakub_g on Thursday May 02, 2013 @07:46AM (#5643761)
Can anyone tell the advantages of having unreadable URLs like this? The only thing I can think of is reducing bandwidth usage through short URLs :)
Re:Probably the worst URL scheme ever by Ovid on Thursday May 02, 2013 @08:08AM (#5643893)
And reducing bandwidth via a brilliant anti-SEO strategy.

* Useless URLS? Check.

* Eye-gougingly ugly design? Check.

* Densely packed content with tiny font? Check.

And have lots of fun reading the source.

Re:Probably the worst URL scheme ever by twistedpair on Thursday May 02, 2013 @09:34AM (#5644331)
You've got to go green by conserving bits. You can use up to a radix of 30 I believe in JS, so why use those pesky base 10 values when you can go base 30 with no additional overhead? Heck, use base 62 for the easily url passable values too. Just 4 chars to encode your 14M WP articles.

Think of the bits!

Re:Probably the worst URL scheme ever by lysol on Thursday May 02, 2013 @07:51AM (#5643785)
This is nitpicking, but the worst URL scheme is actually smb:
Re:Probably the worst URL scheme ever by raverbashing on Thursday May 02, 2013 @08:03AM (#5643865)
And the worse mime type is an unfunny one.
Re:Probably the worst URL scheme ever by bdg on Thursday May 02, 2013 @08:14AM (#5643918)
My first thought when I see this:

This is a band-aid to try and prevent an XSS or SQLi flaw somewhere on the site.

Re:Probably the worst URL scheme ever by cmsj on Thursday May 02, 2013 @12:08PM (#5645398)
I counter with http://www.ctshirts.co.uk just go there and even the front page transmutes itself into a horrifying URL of doom.

Depending on which subsection of the site you're in, you sometimes also get |||||||| on the end of the URL.

I actually know someone who works in the e-commerce dept of the company and I think we should all berate him for how terrible a person he is ;)

Re:Probably the worst URL scheme ever by cmsj on Thursday May 02, 2013 @12:21PM (#5645491)
I just noticed that %7C is the URL encoded form of..... | so it's always just full of pipes!
Re:Probably the worst URL scheme ever by msturm on Thursday May 02, 2013 @08:11AM (#5643909)
Not sure what it is but the URLs on the japanese BVB site look better: http://www.bvb.jp/
Re:Probably the worst URL scheme ever by homosaur on Thursday May 02, 2013 @11:11AM (#5644971)
What the heck, this site is reasonable, attractive, and legible, why is this not the MAIN SITE?!?
Re:Probably the worst URL scheme ever by bobbo3 on Thursday May 02, 2013 @12:13PM (#5645439)
Here's a NOT SAFE FOR WORK url.

    http://www.adultwork.com/ViewProfile.asp?UserID=1945109&Keywords=&KeySearch=1&TargetURL=http%3A%2F%2Fwww%2Eadultwork%2Ecom%2FSearch%2Easp%3FRefreshVar%3D02%252F05%252F2013%2B17%253A11%253A24%26cboCountryID%3D158%26cboCountyID%3D146%26cboAPID%3D0%26rdoRatings%3D0%26cboLastUpdated%3D01%252F01%252F2003%26intAgeFrom%3D25%26intAgeTo%3D33%26DF%3D1%26cboLastLoginSince%3DX%26strSelPostCode%3D%26HotListSearch%3D0%26rdoKeySearch%3D1%26strPostCodeArea%3D%26SearchTab%3DProfile%26cboRegionID%3D11%26question_69%3D%26question_70%3D%26question_2%3D%26question_3%3D%26question_57%3D%26question_27%3D%26question_42%3D%26strKeywords%3D%26intHalfHourRateFrom%3D%26intHalfHourRateTo%3D%26dteAvailableAnotherDay%3D%26hdteToday%3D02%252F05%252F2013%26cbxSelIsEscort%3DON%26strTown%3D%26dteMeetDate%3D%26intMiles%3D%26intMilesUSA%3D%26rdoOrderBy%3D7%26intMeetDuration%3D%26cbxGenderID%3D2%26cboSCID%3D0%26cbxPreferenceID%3D55%26intHourlyRateFrom%3D%26intHourlyRateTo%3D%26intHotListID%3D0%26PageNo%3D1%26SS%3D0%26strSelUsername%3D%26dteMeetTime%3DX%26intMeetPrice%3D%26cboBookingCurrencyID%3D28%26intOvernightRateFrom%3D%26intOvernightRateTo%3D%26strSelZipCode%3D%26CommandID%3D1&NavUserIDs=1768061x1983764x1816348x1873822x1896482x1964251x548903x1052569x1188136x1431008x1780228x1788349x1801647x1475155x1635012x1964725x1995120x1985169x1657721x1678563x1620768x591995x1551539x1579011x1996472x1694586x1198128x1916266x1945109x883257x1097958x273262x1891436x1578047x1797390x1415157x1825574x1935666x1119043x929033x1935510x1957223x1468772x1873269x1494092x1120357x1282956x1284275x1107421x639826
Re:Probably the worst URL scheme ever by joosters on Thursday May 02, 2013 @08:07AM (#5643888)
Take THAT, evil web crawlers! Maybe they are trying to get poorly-written spiders to crash when they hit the site?
Re:Probably the worst URL scheme ever by Ovid on Thursday May 02, 2013 @08:11AM (#5643907)
Well, I do remember years ago when I helped a colleague debug a problem with a web app. Seems that IE was the only browser we could find that crashed with %00 in the URL. I'm pretty certain there was a NUL byte exploit we could have dug into.
Re:Probably the worst URL scheme ever by jakub_g on Thursday May 02, 2013 @08:10AM (#5643901)
Actually when you google site:www.bvb.de there are some readable URLs (not sure how they got there), upon navigating to which they do 302 redirects.
Re:Probably the worst URL scheme ever by joosters on Thursday May 02, 2013 @08:17AM (#5643935)
It's just like tinyurl.com, but in reverse :)
Re:Probably the worst URL scheme ever by mkl on Thursday May 02, 2013 @10:33AM (#5644679)
Unsurprisingly, that actually exists: http://hugeurl.com/
Re:Probably the worst URL scheme ever by X4 on Thursday May 02, 2013 @10:11AM (#5644540)
hahaha :D

Let's put the tech sensation aside. I'm glad to know that the HN Folk have a good sense of humor :)

BTW: you can add multiple routes pointing to the same url, but allow only the SEO URLs to be indexed. This keeps the cryptic URLs for the entertainment of the Users/Crawlers.

Re:Probably the worst URL scheme ever by joosters on Thursday May 02, 2013 @10:31AM (#5644664)
How would you do this? (Leaving aside the question of 'why?')

I suppose you could try blocking crawlers from the raw URLs with an aggressive robots.txt and then put a sitemap (with friendly/SEO URLs in) somewhere for them to discover instead. Would that work?

Paranoid web spiders could flag the site as suspicious, though. Such schemes might make it seem like the website is presenting one view to the spider, and another to real visitors. Almost like it was trying to hide malware from a scanner.

Re:Probably the worst URL scheme ever by X4 on Thursday May 02, 2013 @05:36PM (#5647355)
You could simply add "index" to the page when accessed with /seo/url and noindex when accessed with the cryptic url. Additionally you can enforce that using .htaccess or nginx rules also. Your Framework and HTTP-Router class just has to support multiple URLs per page.

Basically your CMS or Framework must allow to have multiple routes like site.com/best/watch/casio and site.com/→@ðŋ]æ~@¢“«¢“¹²³»«@€^ linking to the same page.

I've used that in the past to switch languages dependant on url-path + browser-language. /en/my-article would show that english article to a german visitor, but everything else on the site like nav, terms etc. would be German. To access the Enlish site, the german visitor would have to click the appropriate flag. I could have easily added the feature to read that same article in German, by a click on a flag in the bread-crumb's mini drop-down. Example: blog»my-article[v] a click on [v] would open blog»mein-artikel etc.

Re:Probably the worst URL scheme ever by alanh on Thursday May 02, 2013 @11:40AM (#5645204)
My understanding is that you can use e.g. "rel=canonical" links to tell bots what the indexable URL of the current page is. Other tools in the box include UA sniffing and sitemap.xml.
Re:Probably the worst URL scheme ever by emidln on Thursday May 02, 2013 @12:04PM (#5645378)
A former coworker of mine created django-unfriendly[1], which seems like it's probably worse. On the other hand, django-unfriendly is meant to obfuscate on purpose.

[1] - https://github.com/tomatohater/django-unfriendly

Re:Probably the worst URL scheme ever by mustermann on Thursday May 02, 2013 @09:19AM (#5644263)
Re:Probably the worst URL scheme ever by helipad on Thursday May 02, 2013 @07:54AM (#5643805)
Look! Another fixed-width, left-aligned German website. Brimming with nostalgia here.
Re:Probably the worst URL scheme ever by romaniv on Thursday May 02, 2013 @09:54AM (#5644444)
Weird characters aside, having URLs of the form example.com?stuff has many advantages. For one, you don't need any weird magic to get relative URLs working properly.
Re:Probably the worst URL scheme ever by dexcs on Thursday May 02, 2013 @07:42AM (#5643748)
Re:Probably the worst URL scheme ever by sebslomski on Thursday May 02, 2013 @09:49AM (#5644414)
Nice try. See you crying in 3 weeks.
Re:Probably the worst URL scheme ever by greggman on Thursday May 02, 2013 @11:46AM (#5645246)
What makes this bad? Or rather what makes this objectively bad? I feel like URL schemes espoused by people who judge them are basically bs. Success of the website IMO seems like the only objective measure and by that measure pretty much any URL scheme is fine given the schemes used on some of the most popular sites use schemes that people like jakub_g complain about

I can see where maybe an API URL might have objective better and worse schemes but a content URL? Show me the research results, not just fashion opinions

Re:Probably the worst URL scheme ever by greggman on Thursday May 02, 2013 @05:36PM (#5647353)
It's a legit point and a legit question. Instead of voting it down answer the question with some objective facts
Re:Probably the worst URL scheme ever by verandaguy on Thursday May 02, 2013 @10:54AM (#5644822)
SANITIZE ALL THE SERVER CONTENTS!
Re:Probably the worst URL scheme ever by jnardiello on Thursday May 02, 2013 @08:07AM (#5643887)
Ehy, i see nothing wrong here.
Re:Probably the worst URL scheme ever by pkhamre on Thursday May 02, 2013 @07:26AM (#5643680)
Best football club in the world with word URL scheme in the world?
Re:Probably the worst URL scheme ever by ante_annum on Thursday May 02, 2013 @12:16PM (#5645457)
http is a perfectly normal url scheme

ducks

Re:Probably the worst URL scheme ever by XarotheOne on Thursday May 02, 2013 @07:58AM (#5643829)
Haha that is epic.

EDIT: I apologise for the really bad comment. I have read the rules now and will only put high quality posts from now on. Thankyou.

Re:Probably the worst URL scheme ever by endgame on Thursday May 02, 2013 @08:07AM (#5643886)
Re:Probably the worst URL scheme ever by XarotheOne on Thursday May 02, 2013 @09:07AM (#5644196)
Actually thanks for that, I didn't realise so many people were against it but I shall refrain from using the word "epic" in a context that it should be used.
Re:Probably the worst URL scheme ever by PavlovsCat on Thursday May 02, 2013 @08:56AM (#5644143)
Thank you. I often wanted to write a rant about the epidemic usage of that word, but now I see I don't have to (I can just link to it, like a cow ^^)
Re:Probably the worst URL scheme ever by piqufoh on Thursday May 02, 2013 @08:34AM (#5644024)
ouch
Re:Probably the worst URL scheme ever by sageikosa on Thursday May 02, 2013 @09:19AM (#5644262)
That page is epic.