News for hackers. Stuff that matters.
Re:DNS Toys by punnerud on Saturday June 11, 2022 @02:29PM (#31706856)
To others, yr.no is a free weather service with API: https://developer.yr.no

I see that dns.toys use it.

Re:DNS Toys by stoicjumbotron on Sunday June 12, 2022 @08:20AM (#31713954)
Out of curiosity, I looked at the headers after clicking on your link and I found that it was sending Referrer as: https://news.ycombinator.com which is not an issue. But then I refreshed the page and saw the same Referrer again. So I checked where it was getting the Referrer from and it was not storing anything in localStorage, not in URL, nor in sessionStorage, nor in cookies. Any idea where the site was getting the Referrer from?
Re:DNS Toys by account42 on Monday June 13, 2022 @05:17AM (#31722982)
Referer [sic] is determined by your browser, not the site. If you just refreshed the tab then its probably looking at the history.

Also, no browser that wants to make any claim of caring about privacy should still be sending cross-domain Referer headers by default which is yet another reason why Mozilla's privacy marketing is just that: marketing without substance.

Re:DNS Toys by grozzle on Monday June 13, 2022 @05:41AM (#31723106)
sic is used to highlight that a spelling or grammar mistake in your writing is part of a direct quote being provided unaltered, and not your own mistake. It isn't used to provide corrections. Anyway, both spellings are fine in various regions.
Re:DNS Toys by stoicjumbotron on Tuesday June 14, 2022 @12:19PM (#31741643)
Got it. So it gets the Referer from the browser history?
Re:DNS Toys by nickmooney on Monday June 13, 2022 @05:17AM (#31722979)
Your browser remembers and replays it. localStorage/sessionStorage/cookies aren't available to parse by the time request headers are sent.

You'll notice this behavior goes away if you select the URL bar and hit enter (as if you were navigating to the site manually).

Re:DNS Toys by stoicjumbotron on Tuesday June 14, 2022 @12:18PM (#31741636)
Yeah you're right. Selecting the URL and hitting enter did clear the Referer. One comment says the browser identifies the Referer by looking at the history is that so?
Re:DNS Toys by account42 on Monday June 13, 2022 @05:24AM (#31723012)
They also have nice graphs on their website. Been using yr.no as my primary site for weather info for years now.