William Rosenbloom
William Rosenbloom

Reputation: 2626

Is there a way to disable SSL/TLS for GitHub Pages?

I have been looking for a place to store some of my XML schemas publicly without actually having to host them. I decided GitHub Pages would be the ideal platform. I was correct except that I cannot figure out how to turn off SSL/TLS. When I try to fetch my pages with plain old HTTP I get a 301 Moved Permanently response.

So obviously this isn't a big deal. Worst case scenario it takes a little longer to download my schemas, and people generally only use schemas that they've already cached anyway. But is there really no way to turn this off?

Upvotes: 16

Views: 14035

Answers (2)

David Jacquel
David Jacquel

Reputation: 52819

From github help :

HTTPS enforcement is required for GitHub Pages sites created after June 15, 2016 and using a github.io domain.

So, you have two solutions :

  • find a github.io repository older than June 15, 2016
  • set a custom domain name on your github.io

Upvotes: 11

VonC
VonC

Reputation: 1325357

But is there really no way to turn this off?

No, and a simple curl -L would follow the redirection and get you the page content anyway.

For instance (get an xml file in a tree structure):

vonc@vonvb C:\test
> curl --create-dirs -L -o .repo/local_manifests/local_manifest.xml -O -L https://raw.githubusercontent.com/legaCyMod/android_local_manifest/cm-11.0/local_manifest.xml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   530  100   530    0     0   1615      0 --:--:-- --:--:-- --:--:--  1743

vonc@voncvb C:\test
> tree /F .
C:\TEST
└───.repo
    └───local_manifests
            local_manifest.xml

Upvotes: 3

Related Questions