You can enable or disable GitHub Pages on your instance. You can also choose to make GitHub Pages sites publicly accessible.

Making GitHub Pages publicly accessible

If private mode is enabled on your instance, the public cannot access GitHub Pages sites hosted on your instance.

Warning: If you enable public GitHub Pages sites, every GitHub Pages site in every repository on your instance will be public.

  1. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Settings tabAt the top of the Management Console, click Settings.

  4. Privacy sidebarIn the left sidebar, click Pages.

  5. Checkbox to enable Public PagesSelect Public Pages.

Disabling GitHub Pages on your GitHub Enterprise instance

If subdomain isolation is disabled for your instance, you should also disable GitHub Pages to protect yourself from potential security vulnerabilities. For more information, see "About subdomain isolation."

  1. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Settings tabAt the top of the Management Console, click Settings.

  4. Privacy sidebarIn the left sidebar, click Pages.

  5. Checkbox to disable GitHub PagesUnselect Enable Pages.

Further reading