3 ms·
Sure, if your web hoster allows .htaccess files (most do). You just put that file next to your HTML files.
by Tomte 7y ago
Sure, if your web hoster allows .htaccess files (most do). You just put that file next to your HTML files.
- dhruvkar 7y agoHave you ever hosted something github pages or netlify? Those are the situations I'm talking about, where an htaccess or any server side access control wouldn't work.
- Tomte 7y agoNo, I haven't. But since you did not tell anyone about that requirement, how was I to guess it?
- dhruvkar 7y agoYou're right. I assumed mentioning static site with Hugo or Jekyll was enough. To clarify, it would be a static site with hosting on something like netlify or github or gitlab pages, where you don't have access to the server.