Contents
“Free” covers very different things. Large platforms host static sites for free with excellent quality, which suits portfolios, documentation and project pages. Standalone “free PHP hosting” offers come with much tighter limits. This guide covers what each option actually gives you, how to publish a static site for free, and when paying becomes the sensible choice.
Before you start
- Know whether your site is static (HTML, CSS and JavaScript files) or dynamic, needing PHP or a database.
- A GitHub account, since most free platforms deploy from a Git repository.
- Basic Git, or willingness to upload files through GitHub’s web interface.
- A domain is optional: every platform gives you a free subdomain such as
username.github.ioor*.pages.dev.
The real free options
| Service | What it hosts | Key limits per its public pages |
|---|---|---|
| GitHub Pages | Static sites from a GitHub repo | Published site up to 1 GB, soft bandwidth limit of 100 GB a month, not meant for online businesses or e-commerce |
| Cloudflare Pages | Static sites plus Functions | 500 builds a month, 20,000 files per site, 25 MiB per file |
| Netlify | Static sites plus Functions | A monthly credit allowance; the site is paused if it runs out |
| Vercel (Hobby) | Static sites, Next.js, Functions | Personal, non-commercial use only, with monthly usage quotas |
| Render (free tier) | Node.js and Python web apps | Spins down after 15 minutes without traffic and takes about a minute to wake; free Postgres expires after 30 days |
This information comes from each service’s public pages in November 2026 and may change, so check the official limits page before you rely on one.
Steps: publish a static site for free on GitHub Pages
1. Prepare the files
Make sure the home page is named index.html and sits at the root of the folder, and that links to CSS and images are relative, like css/style.css.
2. Create a repository and push the files
Create a new public repository on GitHub, then from the site folder on your computer:
git init
git add .
git commit -m "first version"
git branch -M main
git remote add origin https://github.com/USERNAME/my-site.git
git push -u origin main
3. Turn on GitHub Pages
In the repository open Settings » Pages. Under Build and deployment choose Deploy from a branch, select the main branch and the / (root) folder, and click Save.
4. Open the site
After a few minutes the URL appears on the same page, usually https://USERNAME.github.io/my-site/. Every new git push updates the site automatically.
5. Add your domain (optional)
Enter the domain under Custom domain, add the DNS records GitHub’s official documentation lists at your DNS provider, and tick Enforce HTTPS once the certificate is issued.
Cloudflare Pages, Netlify and Vercel work the same way: connect your GitHub account, pick the repository, set the build command (such as npm run build) and output folder (such as dist), or leave both empty for a ready-made HTML site.
Limits to know before relying on free hosting
- No PHP or MySQL on static platforms: no WordPress, no PHP-based admin panels.
- Forms, search and logins need external services or Functions with limited quotas.
- No email on your domain, so you need a separate mail service for an address like
[email protected]. - Commercial-use restrictions on some plans, such as GitHub Pages and Vercel Hobby.
- Sleeping apps: the first visitor waits for the app to start, and a webhook-based bot may fail to reply in time.
- Temporary databases on some platforms, so you lose data unless you move it.
- Support is usually forums and documentation only.
Standalone “free PHP hosting” offers vary widely, so read the terms before signing up: are there ads, what are the resource limits, are inactive accounts deleted, and can you use your own domain with SSL?
When paid hosting makes sense
- Your site is WordPress or PHP with a database.
- You run a store that takes orders, payments and customer data.
- You need professional email on your domain with SPF and DKIM set up.
- You have an app or bot that must respond at any time without waiting to start.
- The project is commercial and the free plan’s terms don’t allow it.
- You want backups, support in your language and payment methods that work in your country.
Troubleshooting
- 404 on GitHub Pages:
index.htmlisn’t at the root of the selected branch, or the file name’s capitalization differs (names are case-sensitive). - Styles missing on a project site: absolute links like
/css/style.csslook at the domain root, not inside/my-site/; use relative links. - Custom domain doesn’t work: the DNS records haven’t propagated or contain a mistake; check them with the DNS lookup tool.
- “Site paused” message: the monthly usage allowance ran out; wait for it to renew or build less often.
On ArabyHost
ArabyHost plans are paid; prices are on the pricing page. When a project outgrows free hosting, shared hosting suits PHP, MySQL and WordPress sites, and static sites run on it too, on LiteSpeed with free SSL and daily backups. You can upload a ZIP as in the HTML upload guide, or keep deploying from GitHub through Git Version Control and a .cpanel.yml file as in deploy from GitHub.
For professional email there are business email plans with SPF and DKIM set up automatically. Node.js and Python apps and bots fit the AI/Developer plans, which run apps through Phusion Passenger and keep background workers alive with cron.
FAQ
Can I run WordPress on free hosting like GitHub Pages?
No. WordPress needs PHP and a MySQL database, and static site platforms run neither. You need hosting that supports PHP and MySQL.
Can I use my own domain with free hosting?
Yes, most static site platforms let you add a custom domain and issue an SSL certificate for it. The domain itself is bought from a registrar, so it isn't free.
Why is my free app slow to load the first time?
Some platforms stop a free app after a period with no traffic and start it again on the next request, which can take about a minute.