Author Topic: Download links with http  (Read 226 times)

cat

  • Mittens Baronet
  • Global Moderator
  • AGS Baker
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Download links with http
« on: 15 Oct 2021, 09:24 »
I noticed that download of my games failed, both in Firefox and in Chrome. As far as I understood, this was some malware protection mechanism of the browser. The link on the game page was still http instead of https and the browser wouldn't let me access the file because I was coming from a site with https. I fixed the link for the game and now download works again.

Would it be a good idea to fix this for all games in the database, that is, automatically change all http:// to https://
Or would this cause other problems?

Re: Download links with http
« Reply #1 on: 16 Oct 2021, 03:12 »
I had this problem “from the other side” a few months ago: I had uploaded some games and pictures onto my server and others couldn't download them from there.

At that time I hit on a snag concerning my server: It wasn't enough to just change the download links from "http://" to "https://". I also had to teach my server to accept those new "https://" requests. It had something to do with installing a "Let's encrypt certificate". Before I'd done that, my server would refuse the "https://" addresses in the same way that it'd refuse wrong or unknown addresses.

So, just changing all the "http://" links won't necessarily solve the problem in all cases. We'd need to check for each individual link whether the "https://" variant is resolved.

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Download links with http
« Reply #2 on: 16 Oct 2021, 11:43 »
Yeah, exactly.  It would probably make more sense for me to export a list of all the http links, and for us to have a community effort to check whether they're also accessible at https.  Checking them by script wouldn't necessarily work unfortunately, as some hosts like MediaFire make things complicated by having an extra step before the download, captchas etc.