It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I have been having problems with slow downloads, so I decided to install the DownThemAll! add-on for Firefox so I could pause downloads and resume them later. However, whenever I try to download a file from GOG with DownThemAll!, a 403 error is immediately generated, and the download doesn't even start (browser downloads work normally). This doesn't happen on other sites I have checked, including the Humble store. Does anyone know why GOG downloads aren't working for me, and how I can get them to? :/
This question / problem has been solved by Geralt_of_Riviaimage
avatar
tamablenebula: I have been having problems with slow downloads, so I decided to install the DownThemAll! add-on for Firefox so I could pause downloads and resume them later. However, whenever I try to download a file from GOG with DownThemAll!, a 403 error is immediately generated, and the download doesn't even start (browser downloads work normally). This doesn't happen on other sites I have checked, including the Humble store. Does anyone know why GOG downloads aren't working for me, and how I can get them to? :/
Not sure. I just give it a try and download Tyrian from GOG using DownThemAll and it works just fine. Try installing flashgot? I usually use combination of flashgot (to catch download link and send it to dta) and downthemall (to manage download, pause and resume etc)
I don't use Firefox, but I'm guessing it's not all that different to Chrome.

Allow the downloader to work in Private or whatever it's called, log in to GoG in a Private window and see if it works.
avatar
tamablenebula: I have been having problems with slow downloads, so I decided to install the DownThemAll! add-on for Firefox so I could pause downloads and resume them later. However, whenever I try to download a file from GOG with DownThemAll!, a 403 error is immediately generated, and the download doesn't even start (browser downloads work normally). This doesn't happen on other sites I have checked, including the Humble store. Does anyone know why GOG downloads aren't working for me, and how I can get them to? :/
Are you using the private browsing mode in Firefox and DownThemAll 2.x?

If the answer is yes in both cases then that's the reason it doesn't work. DownThemAll 2.x is quite old already and therefore incompatible with the private browsing mode in newer Firefox versions.

Solution: Either turn private browsing mode off or swtch to the latest nightly beta of DownThemAll 3.0 which you can get here. Uninstall 2.x first though.
high rated
GOG uses a CDN (Content Delivery Network) to provide its downloads. If you click on a download link

(example) GOG sees that you're logged in and knows if you have the requested game in your library. If so, GOG's server contacts the CDN, asking it to create a secret URL for downloading the requested file,

(example) and and then redirects your browser to that CDN URL. This URL lasts only for a few minutes - plenty of time for your browser or downloader to make all the connections it needs.

The problem comes in when you try to resume a download later. Your download manager remembers the URL used to make the original download connection, but that URL is no longer valid so you get a 403 error.

The makers of the download managers could solve this problem by stepping back and using the original www.gog.com/downlink/ URL instead of the final cdn.gog.com one, having stored the gog.com cookie from your web browser, of course. I'd have thought they'd have done this by now, but I guess now.

There are 3 things you can do. You can use Galaxy, you can use the old GOG downloader, or do the following trick with your downloader
- start a new download of the file you want to resume
- immediately cancel it, but copy the cdn.gog.com URL it was using to your clipboard
- edit the idle download that you want to resume, and change its URL to the one you copied
- resume the download, and it should carry on from where it left off, as long as your new link is pointing to the same version of the same file

There are also several community-made download tools available in the forums here.
avatar
Barefoot_Monkey: GOG uses a CDN ...
Nice summary! +1
avatar
Barefoot_Monkey: GOG uses a CDN (Content Delivery Network) to provide its downloads. If you click on a download link

(example)
avatar
Barefoot_Monkey: GOG sees that you're logged in and knows if you have the requested game in your library. If so, GOG's server contacts the CDN, asking it to create a secret URL for downloading the requested file,

(example)
avatar
Barefoot_Monkey: and and then redirects your browser to that CDN URL. This URL lasts only for a few minutes - plenty of time for your browser or downloader to make all the connections it needs.

The problem comes in when you try to resume a download later. Your download manager remembers the URL used to make the original download connection, but that URL is no longer valid so you get a 403 error.

The makers of the download managers could solve this problem by stepping back and using the original www.gog.com/downlink/ URL instead of the final cdn.gog.com one, having stored the gog.com cookie from your web browser, of course. I'd have thought they'd have done this by now, but I guess now.

There are 3 things you can do. You can use Galaxy, you can use the old GOG downloader, or do the following trick with your downloader
- start a new download of the file you want to resume
- immediately cancel it, but copy the cdn.gog.com URL it was using to your clipboard
- edit the idle download that you want to resume, and change its URL to the one you copied
- resume the download, and it should carry on from where it left off, as long as your new link is pointing to the same version of the same file

There are also several community-made download tools available in the forums here.
One question: When the browser requests the initial link and gets the redirect, what HTTP status code does the server return with the redirect?
avatar
Barefoot_Monkey: GOG uses a CDN (Content Delivery Network) to provide its downloads. If you click on a download link

(example)

GOG sees that you're logged in and knows if you have the requested game in your library. If so, GOG's server contacts the CDN, asking it to create a secret URL for downloading the requested file,

(example)

and and then redirects your browser to that CDN URL. This URL lasts only for a few minutes - plenty of time for your browser or downloader to make all the connections it needs.

The problem comes in when you try to resume a download later. Your download manager remembers the URL used to make the original download connection, but that URL is no longer valid so you get a 403 error.

The makers of the download managers could solve this problem by stepping back and using the original www.gog.com/downlink/ URL instead of the final cdn.gog.com one, having stored the gog.com cookie from your web browser, of course. I'd have thought they'd have done this by now, but I guess now.

There are 3 things you can do. You can use Galaxy, you can use the old GOG downloader, or do the following trick with your downloader
- start a new download of the file you want to resume
- immediately cancel it, but copy the cdn.gog.com URL it was using to your clipboard
- edit the idle download that you want to resume, and change its URL to the one you copied
- resume the download, and it should carry on from where it left off, as long as your new link is pointing to the same version of the same file

There are also several community-made download tools available in the forums here.
avatar
dtgreene: One question: When the browser requests the initial link and gets the redirect, what HTTP status code does the server return with the redirect?
One question? That's a book answer.
avatar
dtgreene: One question: When the browser requests the initial link and gets the redirect, what HTTP status code does the server return with the redirect?
302
avatar
tamablenebula: I have been having problems with slow downloads, so I decided to install the DownThemAll! add-on for Firefox so I could pause downloads and resume them later. However, whenever I try to download a file from GOG with DownThemAll!, a 403 error is immediately generated, and the download doesn't even start (browser downloads work normally). This doesn't happen on other sites I have checked, including the Humble store. Does anyone know why GOG downloads aren't working for me, and how I can get them to? :/
avatar
Geralt_of_Rivia: Are you using the private browsing mode in Firefox and DownThemAll 2.x?

If the answer is yes in both cases then that's the reason it doesn't work. DownThemAll 2.x is quite old already and therefore incompatible with the private browsing mode in newer Firefox versions.

Solution: Either turn private browsing mode off or swtch to the latest nightly beta of DownThemAll 3.0 which you can get here. Uninstall 2.x first though.
Huh.... Well, that does work, but I don't see why it can download from the Humble Store in Private mode but not from GOG.... :/

Thanks! :D
avatar
dtgreene: One question: When the browser requests the initial link and gets the redirect, what HTTP status code does the server return with the redirect?
avatar
Barefoot_Monkey: 302
Hmm that spelunky cdn link you posted earlier works through private browsing (ie without being logged in),
so although almost everyone on this forum have it already, would still be advised to use a permanently free title like Tyrian...

edit: Yes I know that could be a stretch given how brief that link lifespan should be. Still. (ok, nvm my nitpicking, ok?)
Post edited August 27, 2016 by BlackThorny
avatar
BlackThorny: Hmm that spelunky cdn link you posted earlier works through private browsing (ie without being logged in),
so although almost everyone on this forum have it already, would still be advised to use a permanently free title like Tyrian...

edit: Yes I know that could be a stretch given how brief that link lifespan should be. Still. (ok, nvm my nitpicking, ok?)
That's really weird, especially because it was never a valid link to begin with (it was just the correct number characters, but made up of randomly-typed numbers and some letters, like "hexhexhexhex"), not an actual download link. I wonder what happened.
avatar
tamablenebula: Huh.... Well, that does work, but I don't see why it can download from the Humble Store in Private mode but not from GOG.... :/
I'm pretty sure Humble Bundle has a verification key as part of the URL, authenticating it. In theory I could use a unrelated program like Autohotkey to download the games from HumbleBundle as long as I give it the links.

10 million has a link consisting of humble.com/10000000_Windows.zip?gamekey=mr__snipped__7S&ttl=14__snipped__68&t=9f__snipped__8f
avatar
BlackThorny: Hmm that spelunky cdn link you posted earlier works through private browsing (ie without being logged in),
so although almost everyone on this forum have it already, would still be advised to use a permanently free title like Tyrian...

edit: Yes I know that could be a stretch given how brief that link lifespan should be. Still. (ok, nvm my nitpicking, ok?)
avatar
Barefoot_Monkey: That's really weird, especially because it was never a valid link to begin with (it was just the correct number characters, but made up of randomly-typed numbers and some letters, like "hexhexhexhex"), not an actual download link. I wonder what happened.
Well to be honest it doesn't actually work, just allows downloading a blank file. But it might be possible to "hack" it into a legitimate link?
avatar
BlackThorny: But it might be possible to "hack" it into a legitimate link?
If you have the game in your account, you could generate a proper link (lgogdownloader does that for example). If you don't have the game in your account, you cannot generate a proper link.