Comment by debugnik 6 hours ago This site redirects to HN when it notices HN in the referrer. 7 comments debugnik Reply trashb 2 hours ago 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 1 hour ago I doubt it, the redirect is client-side, I got a flash of the page before the redirect. philjackson 26 minutes ago If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow. st_goliath 3 hours ago 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". therein 4 hours ago Wow, I didn't even notice because I have extensions that strip the referrer header. Excellent. chimpontherun 4 hours ago open in new tab yellowapple 2 hours ago 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.
trashb 2 hours ago 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 1 hour ago I doubt it, the redirect is client-side, I got a flash of the page before the redirect. philjackson 26 minutes ago If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow.
debugnik 1 hour ago I doubt it, the redirect is client-side, I got a flash of the page before the redirect. philjackson 26 minutes ago If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow.
philjackson 26 minutes ago If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow.
st_goliath 3 hours ago 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".
therein 4 hours ago Wow, I didn't even notice because I have extensions that strip the referrer header. Excellent.
chimpontherun 4 hours ago open in new tab yellowapple 2 hours ago 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.
yellowapple 2 hours ago 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.
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?
I doubt it, the redirect is client-side, I got a flash of the page before the redirect.
If anything, it's going to at least double its traffic this way when people click again assuming they hit back somehow.
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`:
I wonder why Reddit is "temporarily not undesirable".
Wow, I didn't even notice because I have extensions that strip the referrer header. Excellent.
open in new tab
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.