News for hackers. Stuff that matters.
Re:Matt Levine makes sense of Wall Street like none other by phasetransition on Friday October 09, 2020 @09:07AM (#24729503)
Oh right, I forget that the people in finance day to day are accessing via the terminal.
Re:Matt Levine makes sense of Wall Street like none other by bko on Friday October 09, 2020 @09:40AM (#24729799)
You can also access the Bloomberg website and disable javascript and the article will load. Most adblockers have a disable javascript for this page feature
Re:Matt Levine makes sense of Wall Street like none other by quickthrowman on Friday October 09, 2020 @10:51AM (#24730440)
You can also add a ‘.’ after the TLD to bypass the block for any Bloomberg article: https://www.bloomberg.com./path-to-article
Re:Matt Levine makes sense of Wall Street like none other by pandalicious on Friday October 09, 2020 @11:46AM (#24731057)
that's amazing, do you know why it works?
Re:Matt Levine makes sense of Wall Street like none other by smogcutter on Friday October 09, 2020 @12:22PM (#24731458)
The dot after the TLD represents the root domain. From right to left, URLs read from least to most specific. Root -> TLD -> domain -> subdomain (eg www). The root domain is almost always left out, because it’s always the same and its presence is implied. But if you include it explicitly, it is a distinct URL.

So idk how bloomberg.com works under the hood so I can’t specifically explain this case, but rules that match URLs won’t necessarily see the two versions as identical. This is actually something worth testing your own sites against, to make sure including the root domain doesn’t do something dumb like bypass authentication or whatever.

Edit: also, forgive me if I’m explaining things you already know w/ regard to the root domain and stuff.

Re:Matt Levine makes sense of Wall Street like none other by wonnage on Friday October 09, 2020 @02:35PM (#24732937)
This is 50% of the reason, the other half is that all the tracking/ad requests hit an API endpoint on bloomberg.com (no dot at the end), which is now a separate origin as far as the same-origin policy is concerned. But the code is not expecting this to be the case, and doesn't set any CORS headers on the response, and the browser denies access to the response data.

This breaks the ads but also breaks any interactive charts, etc. that need data from the API.

Re:Matt Levine makes sense of Wall Street like none other by titanomachy on Friday October 09, 2020 @01:27PM (#24732234)
New to me and I've been programming web for quite a while. I've only ever seen that final "." in DNS records, it never occured to me that it would affect logic within the site.
Re:Matt Levine makes sense of Wall Street like none other by sk5t on Friday October 09, 2020 @02:09PM (#24732678)
The trailing "." becomes practically important if you have a client that believes in DNS search suffixes (yuck!). I imagine it might have some effect in this particular case if the user-agent includes the dot in the "Host" HTTP request header and it thus evades some non-canonicalizing layer of Bloomberg's paywall thing, while still being a perfectly okay request to the rest of the chain.
Re:Matt Levine makes sense of Wall Street like none other by smogcutter on Friday October 09, 2020 @01:53PM (#24732515)
You know what’s also missing if you go to bloomberg.com./? All of the ads, and the animated stock ticker. I’m on mobile so didn’t dig into it further, but I bet that all JS loaded on request from another domain (probably including the paywall) is absent or broken.

The site itself loads fine though, because DNS still works and whatever routing layer in their app probably doesn’t care about the domain, just the path that follows it.

Re:Matt Levine makes sense of Wall Street like none other by seppler on Friday October 09, 2020 @05:36PM (#24734685)
I once got a verbal C&D from a Novell web dev because they answered to any domain and I pointed (as a joke) a domain to their IP. Google ended up indexing, and customers were asking what 'reallystrangedomain.com' was when they searched for Novell error messages.

They asked me to stop 'mirroring' their content, and didn't understand I was just pointing my domain to their servers. I stopped, but part of me didn't want to.

Edit: Looks like archive.org picked it up: http://web.archive.org/web/20110623134639/http://thebergenef...

Re:Matt Levine makes sense of Wall Street like none other by iso8859-1 on Friday October 09, 2020 @01:59PM (#24732575)
It shouldn't. It is the fault of hacky protocols like HTTPS that conflate routing with identity. If we had DNSSEC and IPSEC from the beginning, it wouldn't have been necessary to do it on application level.
Re:Matt Levine makes sense of Wall Street like none other by AgentME on Friday October 09, 2020 @03:00PM (#24733213)
The browser's same-origin-policy would still exist the same way without HTTPS.
Re:Matt Levine makes sense of Wall Street like none other by titanomachy on Friday October 09, 2020 @04:16PM (#24733968)
I tried it and it only gives me a separate counter (i.e. 3 free articles on "bloomberg.com." in addition to the ones on "bloomberg.com".) This makes me suspect local storage or cookies.
Re:Matt Levine makes sense of Wall Street like none other by tc313 on Friday October 09, 2020 @10:06AM (#24730015)
An easy way to do this on iOS Safari is to “Show Reader View” after clicking on any Bloomberg article.
Re:Matt Levine makes sense of Wall Street like none other by sails on Friday October 09, 2020 @11:50AM (#24731096)
Hope they don't see this.
Re:Matt Levine makes sense of Wall Street like none other by r00fus on Friday October 09, 2020 @01:34PM (#24732308)
You can even set Safari to automatically go into reader mode for all websites (I do this, then whitelist the sites/webapps). 9 times out of 10 this is much more readable and is darkmode by default.
Re:Matt Levine makes sense of Wall Street like none other by jdminhbg on Friday October 09, 2020 @05:11PM (#24734491)
You can also set reader mode automatically for just certain websites instead (i.e. whitelist vs blacklist); I do this for Bloomberg, Medium, WaPo, and others.
Re:Matt Levine makes sense of Wall Street like none other by swyx on Friday October 09, 2020 @01:58PM (#24732562)
they almost certainly already know this and dont care
Re:Matt Levine makes sense of Wall Street like none other by boogies on Friday October 09, 2020 @09:59AM (#24729958)
(Also, I believe all normal browsers allow disabling javascript in the devtool settings — my adblocker doesn’t because it’s just /etc/hosts.)