6 ms·
All of this gets to me. A www subdomain is _not_ necessarily equivalent and interchangeable with the apex domain; treating them as equivalent is presumptuous in
by chrisweekly 6y ago
All of this gets to me. A www subdomain is _not_ necessarily equivalent and interchangeable with the apex domain; treating them as equivalent is presumptuous in the extreme.
- saagarjha 6y agoI think for most common domains it’s far to late to make a distinction; we already lost http:// http:// and now www is pretty much gone everywhere. I wonder if we’ll get rid of .com anytime soon. While we’re on the topic, I wonder why some websites chose to redirect to www and some keep the apex domain as their homepage. I use the latter because it’s cleaner and, well, my domain is primarily used for my website, but I wonder if there is a technical reason behind choosing one or the other.
- deleted 6y ago[deleted]
- JdeBP 6y agoNetscape Navigator used to automatically prefix "www" and suffix "com", and this carried through to Mozilla as "domain guessing". What you are describing is the state of the art regressing to that. (-:
- saagarjha 6y agoI am waiting for Chrome to automatically “I’m feeling lucky” single word queries so we slide further into URL ambiguity…
- rainonmoon 6y agoNo doubt directing to an AMP page, as well.
- grogers 6y agoOne reason is that you "can't" CNAME your apex domain. So redirecting foo.com to www.foo.com might give you a little more deployment flexibility. The servers hosting the redirect don't need to be super beefy like your main site so just a A/AAAA might not lose you much. Just a guess.
- hug 6y agoThere should be no scare quotes around can’t. CNAMEs on the apex don’t exist because CNAMEs are not allowed to coexist with other record types, and you can’t have an apex without NS records or SOA records or whatever else it may be. You can have a wacky DNS server that allows you to do weird things like ‘alias’ records, but those are sidestepping the DNS RFC: They’re answering with A records, but in a dynamic fashion.
- JdeBP 6y agoOf course, were WWW browsers like a lot of other softwares are, there would be a SRV lookup of the domain, plus the protocol and transport, and the deployment flexibility would be in that mechanism. (-: * http://jdebp.uk./FGA/dns-srv-record-use-by-clients.html http://jdebp.uk./FGA/dns-srv-record-use-by-clients.html Problems are more along the lines of conflicts with internal Active Directory deployment and "split horizon" DNS service. * http://jdebp.uk./FGA/web-allowing-omission-of-www.html http://jdebp.uk./FGA/web-allowing-omission-of-www.html * http://jdebp.uk./FGA/dns-split-horizon-common-server-names.html http://jdebp.uk./FGA/dns-split-horizon-common-server-names.h...
- deleted 6y ago[deleted]
- ddalex 6y agoit stems from the old ages when there was more than http to the internet and `www` it was simply the web server machine, and `ftp` would go to the ftp server ... now everything is HTTPS (or tunneled over HTTPS) so it makes little sense to specify mundane things such as the machine you want to connect to and the protocol to use... there is only one machine (the apex domain) and only one protocol
- zertrin 6y agoEven if everything is HTTPS as you claim (spoiler, it is not, there's still plenty of other protocols in use today) subdomains are still relevant information used in SNI to serve virtualhosts. There is no reason that imposes www.example.net to serve the same content as example.net. Whether or not it does is left to decide by the website operator.
- 3pt14159 6y agoYou're right that it isn't everything, but the non-https stuff out there is super buggy. I had a Canon 5D Mark 4 and it had the option to (s)ftp up raws so I wouldn't have to take out the card. So I went to the trouble of setting up my own secure ftp server. Guess what. It didn't work. I tried everything from raw IP, to a naked domain, to a ftp domain, whatever it was there was absolutely no way of getting Canon to make the connection securely. That's why everything is moving to HTTPS endpoints. It's simple. You just give a url and it works.
- chrismorgan 6y ago> (s)ftp Technical point: FTPS is FTP with TLS, but SFTP is a completely different protocol based on SSH.
- tialaramex 6y agoSpecifically SFTP is a SSH subsystem, when your client connects to a SSH server it gets to specify what subsystem it intends to talk to, and so a remote SSH server can choose to offer the "traditional" shell service, an SFTP server, or any arbitrary thing. In this way SSH subsystems are rather like ALPN in TLS (except years earlier) which is how HTTP/2 works among other things. The SFTP protocol itself, the thing spoken over SSH to the remote SFTP subsystem, is pretty simple, although I don't think it was ever formally standardised, https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13 https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13 You could in principle talk SFTP over some transport other than SSH (e.g. you could use ALPN to select it over TLS), but nobody does.
- weinzierl 6y ago> [..] and now www is pretty much gone everywhere. I don't think this is true. There was a time about 15 years ago when everyone fancy went without www but the pendulum has swung back completely in the meantime. Most sites nowadays redirect to the www version. Twitter is the only page I am aware of which was no-www from the very beginning and stuck to it consistently until today.
- johannes1234321 6y agoIf you use www.example.com and then add forum.example.com the probably external forum.example.com can't reach your cookies. If you put everything on example.com and then later add forum.example.com you have to think about security/privacy.
- shaunn 6y agoI would hope one would always more than think about security or privacy when implementing a public web site.
- goblin89 6y agoThinking one can take care of every aspect of security or privacy when implementing a public website, especially one that publishes UGC, is similar to believing in ability to deliver bug-free software: very likely presumptuous. However, a good way of achieving reasonable security is by reducing the scope of things you have to think about in the first place, preferably by offloading them to trusted implementations someone else (e.g., browser vendors) took care of where possible. Scoping cookies to subdomains, for example, comes in very handy.
- dspillett 6y agoThe suggestion is that using basename.tld instead of www.basenamne.tld adds to the security matters you need to think about, if not now then later if/when you add features on a subdomain that you (and/or your users) want to keep separate in terms of cookie sharing. In that sense using www.basename.tld is thinking about (or at least autonomicly mitigating, by way of scope limiting) those potential security/privacy issues.
- drdec 6y agoI think the point the GP is trying to make is that if one has thought about security and privacy then one is more likely to use www.example.com instead of example.com for one's website for this very reason.
- lkbm 6y agoWhoa! I had no idea this had changed. It used to be that cookies for .example.com and example.com were different -- one was accessible by foo.example.com and the other wasn't. Seems RFC 6265 changed the behavior[0]. I assume the RFC explains the reasoning, but prima facie, this seems like a bad change to me. [0] https://stackoverflow.com/posts/23086139/revisions https://stackoverflow.com/posts/23086139/revisions
- frereubu 6y agoBesides the security questions people have already talked about, there's a sizeable number of non-technical people for whom "www" signals "type this into a browser address bar", whereas the plain apex domain doesn't give that context because it's also in your email addresses, other subdomains etc. I don't think many people get seriously confused by it, but accessibility is for everyone and it just makes it that much easier for people to know what to do.
- chrisweekly 6y agoUsing a CNAME is more resilient against DDoS attacks. Using apex introduces potential problems with subdomains and cookie "leakage".
- chrismorgan 6y agoIt’s not necessarily equivalent and interchangeable, but for public websites, one should redirect to the other, and you’re a troublemaker if you do otherwise, because it’s a well-established and understood convention, and different people will start by guessing one or the other.
- onion2k 6y agoUnless you have a very good reason you just shouldn't change what a user has entered; just trust the user's input where there's no security or integrity reason to do otherwise. This example of Twitter messing with user input and breaking things is a good example of why you don't do that.
- chrismorgan 6y agoRemember that the problem here is purely a performance optimisation having become a pessimisation; it’s not actually breaking anything. I tend to agree with you, but only as far as functionality is concerned: that you shouldn’t act otherwise than the user specified. For display, I’m quite happy with dropping https:// https://, and not too distressed about dropping www.. But for my comment, I wasn’t talking about changing what the user entered, but rather being willing to accept either of the two most common forms that users may enter.
- onion2k 6y agoEntering www.example.com and getting example.com is a breaking change in the sense that you wouldn't expect the user's machine to make a request to a different domain.
- chrismorgan 6y agoI repeat: I am not talking about changing the domain that the user typed. Only that I’m happy with things showing www.example.com as example.com.