Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 987
William Rosenbloom Avatar asked Aug 12 '16 06:08

William Rosenbloom


2 Answers

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
like image 196
David Jacquel Avatar answered Sep 22 '22 17:09

David Jacquel


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
like image 42
VonC Avatar answered Sep 21 '22 17:09

VonC