Remix.run Logo
debugnik 10 hours ago

This site redirects to HN when it notices HN in the referrer.

koito17 3 hours ago | parent | next [-]

The fact sites do evil things with these headers is why I configure Firefox with

  network.http.referer.XOriginTrimmingPolicy
set to 2. It "breaks" sites, but often in good ways (such as the site in TFA).
mghackerlady an hour ago | parent [-]

Referrer links are a dumb idea. Why the hell do you want to know where I'm coming from other than to track me

st_goliath 8 hours ago | parent | prev | next [-]

If you have JavaScript enabled, that is. JWZ at least does the redirect on the server side.

The following is pulled in from `https://soc.me/assets/js/turnBack.js`:

    const undesirables = [
      "news.ycombinator.com/",
      // "reddit.com/", // disable temporaily
      "lobste.rs/"
    ] ;

    if (undesirables.find(site => document.referrer.includes(site))) {
      window.location.replace(document.referrer);
    }
I wonder why Reddit is "temporarily not undesirable".
mechazawa 4 hours ago | parent | next [-]

Why are they undesirable though

self_awareness 2 hours ago | parent | prev [-]

Git history doesn't explain it unfortunately

https://github.com/soc/soc.me/blame/main/assets/js/turnBack....

Although, when we inspect author's profile on lobste.rs, we'll see that he's banned:

https://lobste.rs/~soc [Banned 4 years ago by pushcx: Troll.]

Maybe he's banned from HN as well. And this 'undesirables' is a method of taking some kind of revenge.

colejohnson66 an hour ago | parent [-]

Last comment was just over 5 years ago.

https://news.ycombinator.com/user?id=soc

bArray 3 hours ago | parent | prev | next [-]

Copy the URL and manually paste it into a new tab, no referrer then.

trashb 6 hours ago | parent | prev | next [-]

This is an interesting way to prevent the hug of death. I wonder what the author's reasoning is, also would it really be effective?

debugnik 6 hours ago | parent [-]

I doubt it, the redirect is client-side, I got a flash of the page before the redirect.

philjackson 5 hours ago | parent [-]

If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow.

therein 8 hours ago | parent | prev | next [-]

Wow, I didn't even notice because I have extensions that strip the referrer header. Excellent.

chimpontherun 9 hours ago | parent | prev [-]

open in new tab

yellowapple 6 hours ago | parent [-]

That doesn't seem to clear the referrer, at least on Firefox. Gotta go a step further and outright copy/paste the URL into an already-created tab.

high_na_euv 4 hours ago | parent [-]

Open in private works