Tools and guides

Can a GitHub Pages site be private?

Only if the repository belongs to an organisation on GitHub Enterprise Cloud. Then only people with read access to the repository can open the site, so every reader needs a GitHub account.

Checked 25 October 2026: GitHub’s visibility settings and its warning on new sites.

On GitHub Free, Pro and Team, a Pages site is public even when its repository is private. To send one page to people outside GitHub, upload it to HTMLRadar and send a link only they can open.

What each GitHub plan allows

PlanWhat GitHub documents
GitHub FreePages publishes only from a public repository, and the site is public.
GitHub Pro and GitHub TeamPages can publish from a private repository too, and the site is still public.
GitHub Enterprise CloudA project site from a private or internal repository can be published privately, for people with read access to that repository.
Table 1. Who can open a GitHub Pages site, by the plan of the account that owns the repository. Read on 25 October 2026.

Make a site private on Enterprise Cloud

Open the repository and select Settings, then Pages in the sidebar. Under “GitHub Pages”, open the visibility menu and choose private. GitHub then publishes the site at a new address under pages.github.io, shown on the same settings page.

GitHub allows this only for project sites. The organisation site at <name>.github.io cannot be made private.

Send one page privately without Enterprise Cloud

If what you need is one page read by a few named people, such as a report, a proposal or a demo, you can skip Pages. Build the page as one file with its styles, scripts and images inside it. Drop it on the upload page and sign in, and HTMLRadar gives you a link.

In the link’s settings, under “Who can open it?” choose “Only people I list” and enter each reader’s address in “People and companies”. Under “What readers do before it opens”, choose “Enter their e-mail and confirm it with a code”, then press Create link. Readers need no GitHub account and no HTMLRadar account, and you see who opened the page and which sections they read.

HTMLRadar takes one self-contained HTML file, up to 30 MB. It carries one page, so a site of many linked pages stays on Pages.

If the page stays on GitHub Pages

You can paste the address of a page you host into HTMLRadar to see who read it through your link, but the github.io address stays public. To make the page private, upload the file instead and remove it from your Pages site.

Common questions

Is a GitHub Pages site from a private repository private?

No. GitHub’s documentation warns that a Pages site is public on the internet even when its repository is private. Only Enterprise Cloud can publish it privately.

Can I put a password on GitHub Pages?

GitHub documents no password setting for Pages. Its one access control is private visibility on Enterprise Cloud, where readers sign in with GitHub.

Do my readers need a GitHub account?

For a private Pages site, yes: only people with read access to the repository can open it. An HTMLRadar link needs no account. With the e-mail code on, the reader confirms their address before the page opens.

What does sending a page privately through HTMLRadar cost?

Nothing for two tracked links, with no credit card.

Send one page to the people you choose. They need no GitHub account.