News for hackers. Stuff that matters.
Re:Why use www? by baby on Sunday January 31, 2016 @12:10AM (#11005312)
I was going to write the exact same thing as you. But then I thought about Chrome removing "http://" to avoid displaying useless and dense information to the user. What about www?
Re:Why use www? by LeoPanthera on Sunday January 31, 2016 @01:52AM (#11005537)
That would be misleading as example.com and www.example.com are not guaranteed to be the same site.
Re:Why use www? by cdubzzz on Sunday January 31, 2016 @07:55AM (#11006243)
You could say the same for http:// and https://.
Re:Why use www? by awalGarg on Sunday January 31, 2016 @08:42AM (#11006345)
I don't think chrome (or any browser) removes https:// from url bars. They only remove http://.
Re:Why use www? by cdubzzz on Monday February 01, 2016 @08:03AM (#11011482)
Ah you're right! For some reason I had it in my head that Chrome was hiding that. I really just hate that it hides any part of the full URL.
Re:Why use www? by kuschku on Sunday January 31, 2016 @09:19AM (#11006453)
Doesn’t safari mobile do that?
Re:Why use www? by TheCoreh on Sunday January 31, 2016 @02:07PM (#11007516)
Safari desktop as well.
Re:Why use www? by wyqydsyq on Sunday January 31, 2016 @04:57PM (#11008282)
No you couldn't, with http vs https you are accessing the exact same resource, just through a different protocol.
Re:Why use www? by betenoire on Sunday January 31, 2016 @05:31PM (#11008454)
Not necessarily. I've written my share of rewrite rules that change behavior based on https vs http.

Imagining that were true, you would never be redirected to an https version of a page.

Re:Why use www? by kevinschumacher on Sunday January 31, 2016 @06:04PM (#11008591)
Well, if the org hosting the content is being nice and following convention, sure.

But, there's nothing stopping me from running a webserver listening on port 80 (so, accessed in the browser at http://example.com) that serves a picture of a baseball. I can also run a webserver listening on port 443 only (with SSL/TLS set up, so accessed in a browser at https://example.com), on the same machine, that serves a picture of a dog instead.

This sort of breaks the rules/conventions though because you expect the resource to be the same by nature of the URL you're using to access it. But nobody has to follow that rule

Re:Why use www? by jessaustin on Sunday January 31, 2016 @06:12PM (#11008620)
That's one way to set it up, but there's no guarantee of that. Servers may switch anything based on TLS status or really any other property of a client request.
Re:Why use www? by plaguuuuuu on Sunday January 31, 2016 @07:50PM (#11008942)
I agree with this. The people saying it's technically possible to get a different webpage at that resource address are missing the point - it's trivial to do A/B with the same site, same port, same protocol, based on user IP, time of day or a RNG.

The point of URL is to identify a single address owned by one guy. Removing the www subdomain means you have two addresses, possibly owned by two guys.

Re:Why use www? by effie on Sunday January 31, 2016 @07:03PM (#11008781)
The protocol name is part of the URL, so it is possible and technically valid that the https version leads to different content than the http version. Some things are certainly different, for example if there are ads and other linked resources on the https page, they all need to go through https, while on http page, there is no such requirement.
Re:Why use www? by codeddesign on Sunday January 31, 2016 @02:08AM (#11005585)
Technically I guess you could make it a subdomain but no one would actually do that in a production site and in my 14 years have never seen it used, not to mention that major search engine bots will lookup both. The general user will simply type in the domain name more times than not without the www
Re:Why use www? by jonhohle on Sunday January 31, 2016 @02:39AM (#11005642)
`www` used to literally be a different host in a network (and in some cases, I'm sure still is) specifically designated for WWW traffic. Think of universities in the 90s which had their existing infrastructure and an Internet facing host on their primary domain and they want to add a web server. They may have had a firewall, probably no load balances, so routing port 80 around their primary host was much more complicated than just throwing up a new host and DNS entry.
Re:Why use www? by detaro on Sunday January 31, 2016 @05:07AM (#11005902)
I regularly come across sites that only work with "www.". Common with university sites that use the subdomain hierarchy a lot. For extra fun, make the behavior reversed depending on if you are inside or outside their network.
Re:Why use www? by kuschku on Sunday January 31, 2016 @09:18AM (#11006448)
Same with my uni. And then you have sites that only work with, and others that only work without the www.

But it makes sense. the first subdomain before the uni domain specifies the faculty, many of which have their own datacenters. Then many of those have yet their own servers in their network, and often www. is one added later on.

Re:Why use www? by thesimon on Sunday January 31, 2016 @07:30AM (#11006200)
My uni makes this extra fun with different sites on http and https.
Re:Why use www? by detaro on Sunday January 31, 2016 @11:11AM (#11006782)
Oh yeah. And then someone enables HSTS and a subdomain doesn't support HTTPS, so now you have to keep a browser around that never ever is allowed to contact the parent site...
Re:Why use www? by saurik on Sunday January 31, 2016 @02:59AM (#11005680)
Apple actually does this on the iPhone.
Re:Why use www? by lkbm on Sunday January 31, 2016 @07:46PM (#11008925)
I know IE used to do this too.