r/webdev • u/nobaaaaaa • 25d ago
Question Good providers for hosting a basic html + js website?
I feel this may seem like a very strange question to ask given the circumstances, and hopefully this isn't breaking any rules. A few days ago I had a falling out with someone who happened to be hosting my website on their rented server. It's a very basic portfolio website with HTML and some JS for dynamically generating HTML elements from a Json file.
I'm pretty decent in HTML and JS but by no means a web developer, it's simply not my career. This means I can make a decent website but figuring out how to host it is beyond me. Are there any services that simplify this sort of thing, or is the process of renting and setting up my own basic server for a website straightforward? Github Pages maybe? Forms etc are not required.
I also own my domain, but it's currently still set up to link to that server. Once I get my own sorted out, will I have to worry about the two conflicting?
Edit: thanks everyone. Got it sorted, just waiting on DNS propagation.
Edit 2: website moved now. Thanks again for all the replies! I settled on Github pages as I'm already very familiar with Github in general so it was easy to get set up.
61
u/bastardoperator 25d ago
I would argue Cloudflare, it's slightly faster, and they have everything you need for your domain and DNS all in one spot.
58
u/SuperSubwoofer 25d ago
Just use GitHub pages. If you ever scale to a framework, GitHub actions can run your build process and you can keep hosting there.
24
u/mixsrc 25d ago
If no forms then Github Pages or Cloudflare
9
u/followmarko 25d ago
I just swapped to cloudflare from garbagedaddy and it has so much in the panel to work with that it's insane. Also extremely cheap
10
u/888NRG_ 25d ago
Netlify
1
u/patryk_builds 25d ago
For a static html + js site you don't need a server at all. github pages, netlify or cloudflare pages all host it for free, and your json file works fine since it's just another static file. netlify is probably the easiest: drag your folder onto their site and it's live in a minute.The domain won't conflict, you just repoint it. in your domain registrar's DNS settings you replace the old records pointing at their server with the ones the new host gives you, usually an A/ALIAS record for the root and a CNAME for www. takes anywhere from a few minutes to a few hours to switch over. One important thing though: check the domain is registered in YOUR account at the registrar, not theirs. after a falling out that's the part that can actually hurt, the hosting is easy to replace
3
u/Realistic_Cow2653 25d ago
If you dont care about the url, github. I use ionos for everything
2
u/phil_davis 25d ago
I use Github Pages with a custom domain for my portfolio site.
2
u/kimono_horizon_97 25d ago
Cloudflare Pages gives you free hosting with unlimited bandwidth and lets you add your existing domain in seconds without touching GitHub, which is the fastest way to stop worrying about server maintenance or conflicting DNS records
2
u/wildrabbit12 25d ago
Cloudflare
3
u/Altruistic_Stage3893 25d ago
cloudflare is the correct answer here
1
u/BckseatKeybordDriver 25d ago
I’ve done shared hosting since before aws and all that. Wouldn’t recommend it now. I wasn’t able to get all the features I need with shared hosting so I tried out an unused raspberry pi in my own home and it’s working great. I do Laravel development which is probably more than what you need but I don’t have any limitations on what I can do now
1
u/lazylion_ca 25d ago
Opalstack is my go to.
1
u/YourSEOMan 25d ago
whats your use case?
1
u/OpeningBuilding3366 25d ago
you can write JS that builds DOM nodes out of a JSON file but dragging a folder onto Netlify is where it gets beyond you? come on man. Cloudflare Pages and Netlify both do exactly this, you connect nothing, you drop the folder, done, free tier is plenty for a portfolio. Github Pages works too if you'd rather, just remember the repo has to be public unless you pay, which for a portfolio nobody cares.
the domain thing is a non-issue, your DNS records point wherever you tell them to point, nothing "conflicts", you just swap the A record or the CNAME to the new host and wait for propagation. dont cancel anything on the old server until the new one actually resolves or you'll have a dead portfolio for a day and you'll be back here asking why. also why is your site still sitting on someone else's server after a falling out, move it today not next week
1
u/waltercoots 25d ago
Dreamhost
1
u/jnsy617 25d ago
I recommend Netlify. I’ve got several on there now and working great!
1
u/ideaoliver 25d ago
尝试一下腾讯云的edgeone
1
u/Federal_Bit5046 25d ago
One more option nobody's mentioned: Netlify. It handles plain HTML+JS fine - drag the folder in, or connect a repo and it deploys on every push. I run a React app and a static site there, and when I moved one of them to my own domain it was just adding the domain in their dashboard and pointing DNS at it. If you outgrow static HTML later, the same host handles framework builds, so no migration.
1
u/Hot-Chemistry7557 25d ago
There are so many of them.
1
u/prafandy 25d ago
github pages, vercell, cloudflare, are the blind choices nowadays, they are all have the CLI, that works smoothly with AI.
1
u/yihuaxiang 25d ago
Don't rent a server for this. Static HTML plus a json file is what GitHub Pages or Cloudflare Pages are for, and you already guessed the right one. The old host and the new one only meet at DNS: people hit whichever address the domain points at. Upload the files and open the temporary URL the host gives you first. When that looks right, change the A or CNAME. Until that propagates, the old server is still what visitors see, which is fine while you check.
1
u/Full_Tooth_a 25d ago
I wouldn't worry about the two hosts conflicting. Stale DNS is the more likely problem: if old and new A, AAAA, or CNAME records remain, visitors may end up at different destinations. I'd replace the old records, keep the old site running while the change spreads, and check that both the root domain and the www version work over HTTPS before shutting it down. DNS has a way of making simple moves look mysterious.
1
u/Spare_Bison_1151 25d ago
For a simple one off site use Cloudflare, it allows you to host a site free on a decent service.
1
u/soman_for 25d ago
Just use cloudflare or GitHub pages, even Vercel could be a good alternative
1
u/Acrobatic_Coast3497 25d ago
Cloudflare corres el riesgo que te bloqueen la web los días de partido, y te lo digo por experiencia propia. Yo cambié de cloudflare a Firebase
1
u/Standard_Scarcity_74 25d ago
This doesn’t need a server at all, since html and js reading a json file is a static site and free static hosts handle it easily. Github pages, tiiny host, or cloudflare pages would all work, and any of them gives you a live link in a few minutes. Your domain can only point to one place at a time, so there is no conflict, because once the new site is live you change the dns records at your registrar and the old server stops mattering. First make sure you have your own registrar login and a full copy of your site files, since your old host may still control them.
1
u/einfach_andi 25d ago
First off: don't worry about the domain conflicting. Once you point your domain's DNS records (A / CNAME) to a new host, traffic simply switches over — the old server can't 'fight' for the domain or hold it hostage.
You also 100% don't need to rent or configure a server for this. Since it's purely static HTML + JS reading a local JSON, free static hosting (like GitHub Pages or Cloudflare Pages) is zero-maintenance, and you'll never have to worry about someone pulling the plug on your server again. Also, don't shy away from using AI to help you with the setup steps or organizing your JSON data — modern LLMs are fantastic at handling those mundane formatting bits for non-developers.
Out of curiosity: What is your portfolio showcasing, and how do people usually look at it? (Are you mostly sending links, or do you also present your work in person / on a tablet?) Depending on what you actually do, there might be even simpler or more elegant ways to present it without any hosting friction at all.
1
u/blondewalker 24d ago
Vercel
1
u/typechk 24d ago
no brainer - Cloudflare
1
u/YesterdayNo5873 24d ago
Cloudflare. Pretty sure it's free for what you need
1
u/Popular_Register_440 24d ago
Surprised to see more mentions of Netlify than Vercel… maybe I need to change what my websites hosted on 😂
1
u/sydrk 24d ago
Vercel Hobby plan is free and in my opinion, easy to deploy. It is free so long as your site is not e-commerce.
1
u/tar-dynamic 23d ago
github pages or cloudflare pages will host that for free, no server to set up. for the domain, you just repoint the DNS records at your registrar and remove the ones pointing at the old server, so they won't conflict.
1
u/fordnox 23d ago
npx harvis
and support for custom forms
1
u/Random_dev_Tan 22d ago
Okay i saw that it's set up, but for anyone that needs to host a plain html and js site (static) you can do directly on GitHub. No seperate hosting needed
1
u/bobbyiliev 22d ago
I'd usually go with Cloudflare or DigitalOcean
1
u/dotpoka 20d ago
I wonder why no one has mentioned hosting services that are meant for exactly "basic html+css+js" websites (or, maybe people did and I didn't read deep enough, haha 🙈)
There is also,
Very nifty hosts for "basic html" websites 🙂✅
1
u/tkgid 25d ago
I use hostgator, I love how simple and reliable it has been.
0
u/thy_bucket_for_thee 25d ago
I use bunny.net as my cdn. Don't trust Cloudflare as they're US based, saying this as an American too.
A CDN can be used to act as a simple FTP server. You drag in your static assets, point your domain at their DNS, and that's pretty much to it. As you learn more, you can do more too.
If you're strictly making static sites, using a CDN is a great alternative that can be extremely cheap. Talking about $1 a month cheap.
0
u/itgforlife 25d ago
GitHub Pages is probably your best option if you just have a static site, don't need a server, and don't anticipate that that's something that's going to change.
If you do anticipate needing one in the future, it may be better to look into a service that supports both e.g. Render.
0
u/Alternative_Nose_874 25d ago
for plain html and js you dont need a server at all. any static host with a free tier does it and gives you the certificate automaticaly, pay for something only when you need a backend
0
u/Cool_Reality9325 25d ago
GitHub Pages should be more than enough for this. No point paying for a server if it’s just HTML, JS and JSON files.
0
u/jobiroapp 24d ago
GitHub pages - its for free
-1
u/username_go_brrrrrrr 25d ago
Yup, GitHub pages should be your go-to, having domain is a plus, just consult any free AI on how to connect the two.
-3
u/agufa 25d ago
Aws if you need lowest cost with a production level infrastructure
1
u/farzad_meow 24d ago
budget? any shared hosting like gator or hostmonster or godaddy should do.