Disabling publication of GitHub Pages sites for your organization

You can prevent members of your organization from publishing GitHub Pages sites from repositories in the organization.

Organization owners can disable publication of GitHub Pages sites from repositories in the organization.

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "GitHub's products."

In this article

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

About restrictions on publication of GitHub Pages sites

You can control whether members of your organization can publish websites from repositories in your organization using GitHub Pages. For more information about GitHub Pages, see "About GitHub Pages."

GitHub Pages sites are publicly available on the internet, even if the repository for the site is private or internal. For more information, see "About repository visibility."

Disabling publication of GitHub Pages sites

After you disable publication of GitHub Pages sites, any published site will remain published. You can manually unpublish the site. For more information, see "Unpublishing a GitHub Pages site."

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In the left sidebar, click Member privileges.
    Member privileges option in org settings
  5. Under "Pages creation", unselect Allow members to publish sites.
    Unselected checkbox for "Allow members to publish sites" option
  6. Click Save.
    "Save" button for "Allow members to publish sites" option

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.