News for hackers. Stuff that matters.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by burnte on Sunday April 17, 2022 @02:41PM (#31063136)
I always find jwz's youtubedown works flawlessly for me. https://www.jwz.org/hacks/youtubedown
Re:“YouTube-dl” and “Pirate Bay” back on DDG by js2 on Sunday April 17, 2022 @03:44PM (#31063755)
Do not direct link to jwz.org from HN. Here's a click-safe link:

https://dereferer.me/?https%3A//www.jwz.org/hacks/youtubedow...

Re:“YouTube-dl” and “Pirate Bay” back on DDG by bscphil on Sunday April 17, 2022 @06:39PM (#31065205)
It genuinely shocks me that there are still people who don't disable sending the referer header cross-origin in the browser: I have not encountered a single website that breaks when setting `network.http.referer.XOriginPolicy` to 1 in Firefox, and only 2 or 3 sites that break when setting it all the way to 2.

It not only completely prevents stuff like this, it profoundly increases your privacy on the web by preventing sites from tracking which domain you came from. There is no good reason any site needs to know that. I am surprised that Mozilla hasn't simply made this the default setting for all users.

Re:“YouTube-dl” and “Pirate Bay” back on DDG by brigandish on Sunday April 17, 2022 @10:20PM (#31066607)
> I am surprised that Mozilla hasn't simply made this the default setting for all users.

I was under the impression it was, I doubt I'm the only one, so thanks for drawing attention to it.

Re:“YouTube-dl” and “Pirate Bay” back on DDG by ReallyOldLurker on Tuesday April 19, 2022 @08:04PM (#31091055)
>> `network.http.referer.XOriginPolicy` to 1 in Firefox

Thanks! Just checked and it is at zero for the default. Reviewed https://wiki.mozilla.org/Security/Referrer and learned something new.

Re:“YouTube-dl” and “Pirate Bay” back on DDG by cinquemb on Monday April 18, 2022 @03:00AM (#31068135)
There is also `network.http.referer.spoofSource`, which I have used instead of that.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by bscphil on Monday April 18, 2022 @08:03PM (#31078283)
This breaks in the case that the endpoint actually does use the referer for something. I have actually encountered plenty of cases where a site will use the referer internally, i.e. on the same origin, to check something.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by cinquemb on Monday April 18, 2022 @11:05PM (#31079401)
Yeah that's fair, but I haven't really noticed it for myself, but then again, I disable javascript by default and have compiled a lot of other stuff into the netwerk module that probably breaks sites even more to the degree if its noticeable, i just don't use the site.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by caslon on Sunday April 17, 2022 @11:22PM (#31067000)
The Wayback Machine interface breaks.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by bscphil on Monday April 18, 2022 @12:44AM (#31067518)
Do you have an example of this? What exactly breaks? I use Wayback all the time and have had no obvious problems.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by caslon on Monday April 18, 2022 @06:40PM (#31077569)
Has been the case for a bunch of people with them turned off for a while now:

https://old.reddit.com/r/WaybackMachine/comments/kzvzxl/fail...

Re:“YouTube-dl” and “Pirate Bay” back on DDG by bscphil on Monday April 18, 2022 @08:07PM (#31078315)
Unless I'm mistaken, you've misunderstood the issue. From your link:

> it happened to me and I figured out it started when I disabled website.referrersEnabled

So if you completely disable sending the referer header, it breaks. This would probably also happen if you set `network.http.sendRefererHeader` to 0 or 1.

But that's not what I suggested! I only suggested disabling sending the header externally, to other sites, when the host domain (*.example.org) changes. In fact, someone in the thread you linked says that doing this instead of disabling it completely fixed the issue for them:

> ok I left network.http.sendRefererHeader on 2 (had it on 1), and changing network.http.referer.XOriginPolicy to 2 it works

Re:“YouTube-dl” and “Pirate Bay” back on DDG by postingposts on Sunday April 17, 2022 @07:50PM (#31065697)
I think people don’t know about it. I’m going to do this now that I do. Thank you!
Re:“YouTube-dl” and “Pirate Bay” back on DDG by 77pt77 on Sunday April 17, 2022 @04:04PM (#31063936)
> Do not direct link to jwz.org from HN

Why?

Re:“YouTube-dl” and “Pirate Bay” back on DDG by psyc on Sunday April 17, 2022 @04:06PM (#31063954)
Because the admin detects HN referer explicitly and presents a joke page.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by mnd999 on Sunday April 17, 2022 @04:27PM (#31064141)
Perhaps I’m in the minority, but I find this kind of subversion amusing. Like all good jokes, it’s pretty close to the mark.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by psyc on Sunday April 17, 2022 @04:45PM (#31064320)
I agree, so it’s a safe bet you are in the minority.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by 77pt77 on Sunday April 17, 2022 @04:36PM (#31064235)
I've since noticed...

Just copy the link to not send any referrer information.

Re:“YouTube-dl” and “Pirate Bay” back on DDG by Aissen on Sunday April 17, 2022 @04:03PM (#31063924)
Does not work either because apparently bit.ly's 301 preserves the Referer.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by js2 on Sunday April 17, 2022 @04:18PM (#31064068)
Weird, I had tested it. I’ve updated to a de-referrer site instead.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by Aissen on Sunday April 17, 2022 @04:29PM (#31064158)
Might be a browser difference (firefox here). Thanks for the update, it works better.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by burnte on Monday April 18, 2022 @08:54PM (#31078635)
oooohhhhhhh. The "egg". My bad.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by Aissen on Sunday April 17, 2022 @04:31PM (#31064183)
How often do you update it ? Because it seems to have seen quite a few update from the beginning of 2022.
Re:“YouTube-dl” and “Pirate Bay” back on DDG by burnte on Monday April 18, 2022 @08:56PM (#31078644)
Every time I go to use it I grab a fresh copy.