I understand that .htaccess
is not supported by GitHub Pages. I wonder if there is an alternative for password-protecting particular directories for websites hosted by GitHub Pages.
N alternative to using .htaccess to password protect subdirectories in GitHub Pages
github
Related Topic
- Sequential to-do list using GitHub issues
- “what links here” feature for GitHub
- Analytics on GitHub pages
- GitHub pull requests: is there a quick way to get to the contributor’s branch
- GitHub Pages – Caching Assets in Website Served from GitHub Pages
- Is it possible to serve gist HTML files via GitHub Pages (or elsewhere)
- GitHub Pages – Markdown Displaying as Plain Text Issue
Best Answer
Unfortunately, GitHub pages only supports static pages. There is no way to make it execute server-side code and thus it's impossible to protect your pages with any kind of authentication scheme. If you expand further on why you need to password-protect your pages, maybe I can help you find a workaround.