I'm a beginner in web development and have created a few simple HTML files with some CSS. Currently, I have a folder with all my images and an index.html file, making up a basic static website. My goal is to write more blogs in HTML format and upload them to the web without anyone seeing my code. While I know about GitHub Pages, I'm looking for hosting options that don't expose my code publicly, and I prefer free solutions since I'm a student. I want to ensure that my visitors can read my blogs without any limits on web traffic or file handling. Can anyone recommend options that allow me to easily drag and drop my files to get my site live?
5 Answers
For your needs, I'd recommend platforms like Netlify or Cloudflare Pages. They both allow for easy drag-and-drop uploads of your HTML files, and they have free tiers with good limits on usage. If you're worried about privacy, you can set your repository to private, even with GitHub. Just keep in mind that any static content will still be visible to visitors' browsers at some point.
Check out Neocities. They have a free hosting option where you can upload your static files. Just remember, most free hosts don’t offer serious domains; you’re often stuck with odd extensions unless you pay for a .com later.
Sounds good! I'll give Neocities a look.
It's important to note that anything served as HTML and CSS is ultimately deliverable in a human-readable format, which means others can access the source code via their browser's developer tools. GitHub Pages is fine for serving static sites but consider a static site generator if you want more structure.
If you're posting HTML pages, people will have access to the code since it's served to their browsers. GitHub Pages works well for this, but if you're looking for a totally private option, consider deploying your site through something like Vercel. They offer free hosting along with auto-generated domains too.
Just a heads up, for any free hosting service, they often provide limited bandwidth. If your website attracts more traffic than allowed, they might suspend it temporarily. It’s a wise idea to check out their bandwidth limits before you start promoting your site.
That’s my concern. If my site exceeds the traffic limit, will they just shut it down?

I checked out Netlify but wasn’t aware that I could keep my repo private. Is this feature available for free users?