[{"data":1,"prerenderedAt":146},["ShallowReactive",2],{"use-case-\u002Fuse-cases\u002Fgithub-pages-password-protect":3},{"id":4,"title":5,"body":6,"comparison":83,"cta":114,"description":117,"extension":118,"faqs":119,"h1":129,"meta":130,"navigation":131,"path":132,"pillar":133,"platform":87,"seo":136,"siblings":137,"stem":142,"updated":143,"valueProp":144,"__hash__":145},"useCases\u002Fuse-cases\u002Fgithub-pages-password-protect.md","GitHub Pages Password Protect: client previews | Hostsmith",{"type":7,"value":8,"toc":77},"minimark",[9,13,18,49,52,56,68],[10,11,12],"p",{},"GitHub Pages is a great deal: free hosting, free HTTPS, free custom domains, and a workflow that fits right into how developers already work. For open-source projects and documentation it is hard to argue with. The trouble starts when the thing you are publishing is a confidential client preview rather than a public project.",[14,15,17],"h2",{"id":16},"where-github-pages-actually-stands","Where GitHub Pages actually stands",[19,20,21,29,43],"ul",{},[22,23,24,28],"li",{},[25,26,27],"strong",{},"No native password."," There is no built-in \"protect this site with a password\" option.",[22,30,31,34,35,38,39,42],{},[25,32,33],{},"Private Pages"," exist, but only on ",[25,36,37],{},"GitHub Enterprise Cloud",", and they gate access to ",[25,40,41],{},"members of your organization"," through SSO. That is internal access control, not a password link you hand to an outside client.",[22,44,45,48],{},[25,46,47],{},"Free-tier repos are public."," On the free tier the repository behind your Pages site is public, so your source files are public too - an odd fit for client work under NDA.",[10,50,51],{},"So the accurate gap is scope plus plan: access control is enterprise-tier and member-scoped, not an external client password. It is not that gating is impossible.",[14,53,55],{"id":54},"how-hostsmith-handles-the-same-job","How Hostsmith handles the same job",[57,58,59,62,65],"ol",{},[22,60,61],{},"Build your site locally (the same output you would push to Pages).",[22,63,64],{},"Drop the output folder or a ZIP onto Hostsmith for a free public link - no repo required.",[22,66,67],{},"On the Pro plan, turn on Private Sites and pick a shared password or an email whitelist.",[10,69,70,71,76],{},"Your source stays yours, the audience is whoever you choose, and the gate is a toggle rather than an enterprise plan. Password protection, custom domains and EU partitions are Pro features; the free tier is a public link only. For the broader hosting trade-offs, see our ",[72,73,75],"a",{"href":74},"\u002Fblog\u002Fgithub-pages-alternatives","GitHub Pages alternatives"," guide.",{"title":78,"searchDepth":79,"depth":79,"links":80},"",2,[81,82],{"id":16,"depth":79,"text":17},{"id":54,"depth":79,"text":55},{"caption":84,"columns":85,"rows":89},"Gating a client preview: GitHub Pages vs Hostsmith (capabilities, not prices)",[86,87,88],"Capability","GitHub Pages","Hostsmith",[90,94,98,102,106,110],{"feature":91,"them":92,"us":93},"Native shared-password gate","No built-in password feature","Built in on Pro - one toggle",{"feature":95,"them":96,"us":97},"Access control","Private Pages on Enterprise Cloud, gated to org members via SSO","Shared password or email whitelist (Pro)",{"feature":99,"them":100,"us":101},"Audience","Internal org members","Any external client you choose",{"feature":103,"them":104,"us":105},"Deploy method","Git push (public repo on the free tier)","Drag and drop a file or ZIP",{"feature":107,"them":108,"us":109},"EU data partition","GitHub-hosted; no EU-only data choice","EU partition on Pro",{"feature":111,"them":112,"us":113},"Free public link","Yes, with free HTTPS and custom domain","Yes - free tier, public link",{"heading":115,"sub":116},"Send a private preview, not a public repo","Drop your build for a free link, then add a password or email whitelist on Pro.","GitHub Pages has no native password; access control needs Enterprise Cloud and gates to org members via SSO - not an external client password link. Drop your build on Hostsmith and gate it on Pro.","md",[120,123,126],{"q":121,"a":122},"Can you password protect a GitHub Pages site?","Not natively - GitHub Pages has no built-in password feature. The closest thing is private GitHub Pages, which requires GitHub Enterprise Cloud and limits access to members of your organization through SSO. That is access control for internal people, not a shared password link you can send to an outside client. It's a scope and plan gap, not 'you can't gate it at all'.",{"q":124,"a":125},"GitHub Pages is free and great - why move?","For open-source and docs, GitHub Pages is excellent: free HTTPS, free custom domains, generous limits. The mismatch is narrow - a confidential client preview on the free tier means a public repo (your source is public too), and the only gate is Enterprise + org membership. For that one job, a drop-and-gate host is simpler.",{"q":127,"a":128},"How do I gate the same build on Hostsmith?","Run your build, then drop the output folder or a ZIP onto Hostsmith for a free public link. On the Pro plan, turn on Private Sites and choose a shared password or an email whitelist. Gating is the paid part; the public link is free.","GitHub Pages password protect - for real client previews",{},true,"\u002Fuse-cases\u002Fgithub-pages-password-protect",{"label":134,"to":135},"Full guide: how to password protect a website","\u002Fblog\u002Fpassword-protect-website",{"title":5,"description":117},[138,141],{"label":139,"to":140},"Password protect an HTML page","\u002Fuse-cases\u002Fpassword-protect-html-page",{"label":75,"to":74},"use-cases\u002Fgithub-pages-password-protect","2026-06-16","GitHub Pages has no built-in password, and its access control needs Enterprise Cloud and gates to your org's members via SSO - internal, not an external client link. Drop the same build on Hostsmith and add a shared password or email whitelist on Pro.","dnRCsmpExH_mjuTJ6q27KPkE2_ZPag5K3X08BUiI8e0",1781808843899]