Live data from Hacker News

Macwright.com redirects HN readers away

macwright.com

41–50 of 77 posts

Re: Macwright.com redirects HN readers away

#41
post #38

Things I learned today. Apparently, opening a link in a new tab doesn't set the referring host domain. [discovered by, opening story in a new tab and wondering what the author meant]

I imagine in the next few years the referer header will just be blanked out always when crossing to a new domain. I believe the path was removed already.

Re: Macwright.com redirects HN readers away

#42
post #10

I agree with all of that. The defensiveness that comes with writing for HN (and Twitter) makes me a worse writer too. It's not just about being careful and precise, but about being super defensive to avoid the most uncharitable possible reading. Perhaps more unfortunately, I find that writing for academic conferences and journals makes me a worse writer too. It's different, but having to laser focus on 'selling' the…

I’m in the middle of writing a series of security articles on my blog and a couple of people have told me that some of them are too long. They are long because I was trying to be thorough, but more so I was trying to make sure I pre-addressed all of the arguments I knew would come (particularly in my enterprise DMARC deployment article). I realize that what the author talks about here is part of why I do that.

I recommend posting the articles as you intended to. You’ll never make everyone happy anyway.

Re: Macwright.com redirects HN readers away

#43
post #15

Did he disable it for this article? Because I got through without doing anything unusual. But also: I don't really get why he'd want to do that. I read the article, and I get his complaints, but they don't really seem to have anything to do with other people reading his site. They sound like reasons for _him_ to not post to and engage on HN, not reasons to try to stop people coming from HN from reading his site. His…

Maybe if you have SmartReferer, or for some reason your browser isn't sending it. I had to disable it to see it in action

Re: Macwright.com redirects HN readers away

#44
post #15

Did he disable it for this article? Because I got through without doing anything unusual. But also: I don't really get why he'd want to do that. I read the article, and I get his complaints, but they don't really seem to have anything to do with other people reading his site. They sound like reasons for _him_ to not post to and engage on HN, not reasons to try to stop people coming from HN from reading his site. His…

You must have a browser setting that blocks Referer headers or disables JavaScript by default.

Here is the snippet of code that does the redirect:

    
    try {
        if (document.referrer) {
            const ref = new URL(document.referrer);
            if (ref.host === 'news.ycombinator.com') {
                window.location.href = 'https://google.com/';
            }
        }
    } catch (e) {}
    

Re: Macwright.com redirects HN readers away

#45

window.location.href = 'https://google.com/'; That snippet redirects people who arrive at macwright.com from Hacker News. My pi.hole blocks google.com, so the redirect failed and macwright.com loaded as usual. To be fair, my comment probably allays whatever doubt the author might have about blocking HN :)

> My pi.hole blocks google.com How is that working out for you? I would imagine half the internet stops working?

I block google.com and subdomains. Surprisingly, it doesn't do much collateral damage.

I do have one exception: I whitelist youtube-ui.l.google.com. As much as I hate Google, everyone on earth posts their video to Youtube, and invidious is too janky to replace it. I hope I live long enough to see a world where humanity has found a more ethical video repository than Google.

Re: Macwright.com redirects HN readers away

#46
post #38

Things I learned today. Apparently, opening a link in a new tab doesn't set the referring host domain. [discovered by, opening story in a new tab and wondering what the author meant]

I imagine in the next few years the referer header will just be blanked out always when crossing to a new domain. I believe the path was removed already.

For now website owners can also remove it the referrer header if they would like to with Referrer-Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Re...

Re: Macwright.com redirects HN readers away

#48
post #10

I agree with all of that. The defensiveness that comes with writing for HN (and Twitter) makes me a worse writer too. It's not just about being careful and precise, but about being super defensive to avoid the most uncharitable possible reading. Perhaps more unfortunately, I find that writing for academic conferences and journals makes me a worse writer too. It's different, but having to laser focus on 'selling' the…

> It’s not just about being careful and precise, but about being super defensive to avoid the most uncharitable possible reading. That’s a shame because one of HN’s explicit guidelines [1] is to respond to the “strongest possible interpretation of what someone says”. [1]: https://news.ycombinator.com/newsguidelines.html

It wouldn't need to be a guideline if it was already common behavior.
Post reply on HN