How can I host my static blog without exposing my code?
Asked by
BeneathTheStairs
I'm just starting out in web development and have created a static website with some HTML and CSS files collected in a folder. I want to keep building my blog by adding more HTML files and easily upload them to the web for visitors to read. I'm looking for options that allow me to host my website with a simple drag-and-drop method without exposing my code to the public. I know about GitHub Pages, but I'm not keen on people viewing my code. Ideally, I'd love to find free hosting options, as I'm a student and budget is tight. What are the limitations, like visitor traffic or file handling, for the options you suggest?
Answers
For a more professional touch, consider getting a cheap domain. Domains like .me or .xyz can often be purchased for a couple of bucks a year. A .com domain gives a more serious impression too if your blog takes off.
Reply to this answer
You should check out Netlify or Cloudflare Pages. They both allow you to simply drag and drop your HTML files, and they have free tiers that are great for beginners. If privacy is a major concern, you can make your repo private on Netlify, and the deployment still works smoothly.
Reply to this answer
If you're really just posting basic HTML pages, remember that the code is inherently visible. GitHub Pages is still an easy option despite that. You also might want to explore Vercel for free hosting; itโs user-friendly and has a nice setup.
Reply to this answer
Check out Neocities! They offer a free option thatโs great for simple static websites. Just keep in mind, with any free hosting, there can be some limits on traffic, so itโs worth finding out those specifics beforehand.
Reply to this answer
Just a heads up, any HTML and CSS you upload can be seen by anyone since browsers render them directly. If you're very concerned about visibility, you might want to consider using a static site generator to assemble your blog pages before deployment.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions