In short: to define web hosting simply, it’s renting space on a server, a computer that stays connected to the internet day and night. That server stores your website’s files and sends them to every visitor who types your address. This guide explains how that works, what a plan contains, which type fits which site and what it costs.
Define web hosting: the plain-language answer
Web hosting is a service that stores the files and data of a website on a server and delivers them to visitors over the internet. A hosting company, also called a web host or web hosting provider, owns or rents those servers in a data center. You rent a share of one, usually by the month or the year, and the company keeps it powered, connected and maintained.
The word “host” comes from networking. A host is any computer connected to a network that offers data or services to other machines. A web host is simply a host whose job is to serve websites, and “hosted” means your site lives on one of its machines.
A website is just a set of files: each web page in HTML, stylesheets, images, scripts and, for most modern sites, a database. On your own computer, only you can see them. Once they’re stored on a web server with a public address, they become accessible to anyone, anywhere, which is the whole point of hosting.

How web hosting works, step by step
The mechanism takes a fraction of a second, but it helps to see each step, because every hosting feature maps onto one of them.
- The visitor types your domain name. A domain name such as example.com is a human-friendly label, not a location.
- The browser asks DNS for the server’s address. DNS, the Domain Name System, is the internet’s directory. It translates the name into an IP address, the numeric address of the server (for example 203.0.113.10).
- The browser connects to the web server. That server runs web server software such as Apache, Nginx or LiteSpeed, and listens for requests on port 80 (HTTP) and port 443 (HTTPS, the encrypted version).
- The server prepares the page. For a static page, it simply reads a ready-made HTML file from its storage. For a WordPress site, it first runs PHP code, the programming language WordPress is written in, and pulls posts from a MySQL or MariaDB database.
- The server sends everything back. The page, its images and its scripts travel back as small packets of data, and the browser assembles and displays them.
So what is the server doing when nobody visits? It keeps running, listening for the next request. Its software stays loaded in memory, which is why a hosted site answers instantly while the same project on your laptop may take time to start. That constant availability, with backup power and fast network links, is what you’re paying for.
One technical note: two RFCs (Requests for Comments, the internet’s official standards documents) define DNS. RFC 1034 and RFC 1035 date from 1987, and DNS still works on the same principle today. RFC 5737 reserves the range of the address 203.0.113.10 above for documentation, so it will never point to a real site.
Web hosting vs. domain name
This is the confusion that trips up most beginners. The domain is your address; the hosting is the place where your website file actually lives. You need both for a live website, and they’re two separate products even when one company sells you both.
| Domain name | Web hosting | |
|---|---|---|
| What it is | Your website address (example.com) | Server space that stores and serves your files |
| Who sells it | A domain registrar | A hosting company |
| Typical cost | About $10 to $20 per year for a .com | From free to hundreds of dollars per month |
| How they connect | DNS records point the domain to the server’s IP address or to the host’s nameservers | |
Many hosts include a free domain for the first year, which is convenient. Still, we recommend registering the domain in your own name, ideally at a registrar separate from your host. If the hosting becomes slow, expensive or unreliable, you can move the site and simply repoint the domain. When both sit in one account, a dispute or a forgotten payment can take the address and the site down together. codeyard.app walks through the specifics.
Moving a domain to a new registrar doesn’t move your website. As long as the nameservers or DNS records stay the same during the transfer, the site keeps loading from the same hosting account.

What a hosting plan includes
Plans look alike on paper. These are the components that make the real difference, and the terms you’ll meet on every pricing page:
- Storage space: the disk space for your files, databases and emails. SSD (solid-state drive) storage, or the faster NVMe kind, reads files far quicker than old hard drives. Most small sites use far less than plans advertise.
- Bandwidth (data transfer): how much data visitors can download each month. “Unlimited” plans still have fair-use limits in their terms.
- Uptime guarantee: the share of time the host promises your site will be online, usually set in its SLA (service level agreement). The maths matters: 99.9% uptime still allows about 43 minutes of downtime a month, or nearly 9 hours a year.
- SSL (Secure Sockets Layer) certificate: the file that enables HTTPS and the padlock in the browser. SSL, whose modern successor is TLS (Transport Layer Security), encrypts traffic between visitor and server. Free certificates from Let’s Encrypt are standard, so a host that charges extra for a basic one is a warning sign.
- Email accounts: addresses on your own domain, such as [email protected]. Some plans include them, others expect a separate email service.
- Control panel: the web dashboard for managing files, databases, email, DNS records and backups without typing commands. cPanel is the most common. Plesk, DirectAdmin and custom panels like Hostinger’s hPanel are the main alternatives.
- Backups: how often the host copies your site, how long it keeps the copies, and whether you can restore one yourself.
- Customer support: 24/7 chat or phone help matters most on the day something breaks.
Two extras matter for most business sites. A one-click installer sets up WordPress or another CMS (content management system) for you. File access by FTP (File Transfer Protocol) or SFTP (SSH File Transfer Protocol), its encrypted version, lets a developer upload files directly. Check both before you sign up.
The main types of web hosting compared
Every type of hosting provides server space; the difference is how many customers share the machine and how much of it you manage. The price ranges below are typical starting points that vary widely by provider, region and promotion.
| Type | How it works | Best for | Typical monthly price | Avoid if |
|---|---|---|---|---|
| Shared hosting | Hundreds of sites share one server and its resources | Brochure sites, blogs, small WordPress sites | About $3 to $15 | You expect sudden traffic spikes or need custom software |
| VPS hosting | One physical server split into virtual private servers with reserved memory and processor | Growing sites, online shops, developers | About $5 to $60 | Nobody on your side can maintain a server (choose managed) |
| Cloud hosting | Your site runs on a network of servers that adds resources when traffic rises | Apps with changing traffic | Billed by usage, harder to predict | You need a fixed, predictable bill |
| Dedicated hosting | A whole physical machine rented for you alone | High-traffic sites, strict compliance needs | About $80 to $300 or more | Your site is a typical small business site |
Shared hosting is the most affordable way to host your website because customers split the cost of one server, and the host handles the operating system, security patches and maintenance. The downside is shared resources: a traffic surge on a neighbouring site can slow yours down. theedigital.com has covered this at length.
A virtual private server (VPS) gives you your own slice of a machine, with guaranteed RAM (working memory) and CPU (processor time) and its own operating system. Other customers can’t slow you down. On an unmanaged VPS, though, updates and security are your job, usually over SSH, a secure command-line connection.
Cloud hosting borrows from cloud computing: it spreads your site across several virtual servers, so another machine takes over if one fails. Be aware that many “cloud” plans sold by ordinary hosts are really a VPS with easier upgrades.
Dedicated hosting rents you a whole server, with full control and full responsibility. In our view, most websites never need one.
Other hosting labels you’ll see
Hosting companies also sell plans by purpose rather than by architecture. Each of these sits on top of one of the four types above:
- Managed hosting: the host handles day-to-day administration, updates and monitoring for you. It costs more and saves the most time.
- WordPress hosting: a server tuned for WordPress, often with caching, automatic updates and staging sites, which are private copies for testing changes. Managed WordPress plans typically run about $20 to $60 a month.
- Reseller hosting: you buy a large hosting account and split it into smaller ones for your own clients. Web agencies and freelancers use it.
- Static hosting: for sites made only of ready-made files, with no database or server-side code. Services such as GitHub Pages, Cloudflare Pages and Netlify host them, often free.
- E-commerce hosting: plans aimed at online stores, with SSL, more resources and payment-friendly security features.

What hosting means in website building
In website building, hosting is the stage where a finished design becomes a public site. A designer or developer builds the pages, often locally on their own computer or on a staging copy. They then upload the files and database to the hosting account and point the domain at it. From then on, the host serves the site and the website owner edits the website content through a CMS like WordPress.
How visible hosting is depends on the tool you build with. With a self-hosted WordPress.org site, you choose and pay for hosting yourself, which gives you full control over plugins, themes and where your data lives. With a website builder such as Wix, Squarespace or Shopify, hosting comes bundled into the subscription. That’s simpler, but you can’t simply copy the site to another host; moving usually means rebuilding it, at least in part.
For a small business that expects to add pages, a blog or a shop over time, we recommend a WordPress website on good shared or managed hosting. Builders suit people who want zero maintenance and accept being tied to one platform.
How much should you expect to pay for web hosting?
For a typical small business website, expect roughly $3 to $15 a month on shared hosting, plus about $10 to $20 a year for the domain. Managed WordPress costs more, and VPS or dedicated servers only make sense once your site needs them.
The biggest surprise is usually the renewal price. Many hosts advertise a low introductory rate that applies only if you prepay one to three years, then renew at two to four times that price. Always read the renewal rate before you buy, and compare plans on it rather than on the headline offer.
Also budget for the costs around the plan:
- the domain name after any free first year;
- business email on a separate service, typically a few dollars per user per month;
- premium themes or plugins for WordPress;
- extra backup or security services if the plan’s basics fall short;
- your own time, since a cheap unmanaged VPS costs hours of maintenance.
Example, for illustration only: a five-page site for a local service business on a $6 shared plan with a $15 domain comes to about $87 in its first year. If the plan renews at three times its introductory price, the second year’s hosting alone reaches about $216.
Can you host a website for free?
Yes, with limits. Static hosting services publish HTML, CSS and JavaScript sites at no cost, and they’re excellent for a portfolio or a documentation site. Free tiers of site builders and app platforms work within their quotas. You can even serve a site from a computer at home.
Each option has a catch. Static services can’t run PHP or a database, so WordPress is out. Free builder tiers usually show ads and a branded subdomain.
A home server depends on your internet provider, so check its terms of service: some residential plans don’t allow running servers. Your IP address may also change, and the site goes down whenever the machine does.
For anything that represents a business, cheap paid hosting is the more reliable hosting option. A few dollars a month buys your own domain, no third-party ads and a support team when something breaks.

Is web hosting safe?
A reputable web hosting service is safe, but security is shared between you and the host. The host protects the physical servers, the network and the operating system, and on shared plans it isolates accounts from each other. You remain responsible for what you install: the CMS, its plugins and themes, your passwords and who has access.
In our view, the weak points of a small site are usually the outdated plugin or the reused password, rather than the hosting itself. Keep everything updated, use strong unique passwords with two-factor login, and keep your own copy of the backups outside the hosting account.
There’s also a legal side. If your site collects personal data, such as a contact form or a shop, your host processes that data on your behalf. Under the EU’s GDPR (General Data Protection Regulation), Article 28 requires a written data processing agreement with such a processor. Serious hosts publish one, so look for it before you sign. Someone has put together a good summary of it.
How to choose the right hosting for your site
Start from what the site needs, then pick the simplest hosting that covers it. This table matches common profiles with a sensible starting point:
| If you have | Start with | Avoid |
|---|---|---|
| A portfolio or one-page site, no forms | Static hosting or entry-level shared | Paying for a VPS you won’t use |
| A local business site with a contact form | Shared hosting with SSL, backups and email | Free hosting with ads on your pages |
| A business WordPress site you update often | Managed WordPress hosting | Bargain plans with no staging or restore tool |
| An online store | Managed WordPress, a VPS or a hosted e-commerce platform | The cheapest shared plan |
| A custom web application | A VPS or cloud hosting | Shared hosting that blocks the software you need |
| Several client sites as an agency | Reseller hosting or a managed VPS | Mixing every client in one shared account |
Then check four points on the hosting service provider’s site: supported PHP versions and databases, server location close to your visitors, real backup and restore options, and the renewal price. Read the terms of service for any limits hidden behind “unlimited”.
A word on GoDaddy, since many people ask about it: it’s one of the best-known companies selling both domain names and hosting. “Web hosting in GoDaddy” simply means renting one of its hosting plans, which works like any other host’s. The same advice applies there as everywhere: compare renewal prices, and keep the domain under your own control.
Pointing a domain at your hosting
Once you have both, you connect them in your registrar’s DNS settings. There are two common ways:
- Change the nameservers. Replace the registrar’s nameservers with the two (or more) your host gives you, such as ns1.yourhost.com. The host then manages all DNS records, including email.
- Or edit the records yourself. Keep the registrar’s nameservers and create an A record for
@(the bare domain) pointing to the server’s IP address. Then add a CNAME (canonical name) record, an alias from one name to another, forwwwpointing to the bare domain.
Changes don’t apply instantly. Each DNS record has a TTL (time to live), the number of seconds other servers may keep the old answer in cache. Providers commonly quote up to 24 to 48 hours for a full update, although most visitors see the change much sooner.
To check where a domain currently points, open a terminal and run:
dig +short example.com A
dig +short example.com NS
nslookup example.com
The first line shows the server’s IP address and the second the nameservers. The third works on Windows, where dig isn’t installed by default.

Common hosting mistakes and how to fix them
- Symptom: the browser shows “Not secure”. Cause: no SSL certificate, or the site still loads over HTTP. Fix: activate the free certificate in your control panel, then redirect HTTP to HTTPS. Google Chrome has flagged every HTTP page this way since version 68 in July 2018.
- Symptom: the site is slow at busy times. Cause: an overloaded shared server or a heavy site. Fix: enable caching and compress images first; if it persists, move up to a VPS or managed plan.
- Symptom: you can’t recover the site after a problem. Cause: backups kept only on the same server, or never tested. Fix: try a restore once, on a copy, before you need it.
- Symptom: you can’t leave a host or a developer without losing the domain. Cause: the host or the developer registered the domain in their own name. Fix: ask for a transfer to your own registrar account, with your email address as the contact.
How to measure whether your hosting does its job
Hosting quality shows up in two numbers you can track yourself. The first is real uptime. A free external monitoring service can check your homepage every few minutes and email you when it fails. A month of data tells you whether the host keeps its promise.
The second is server response time, measured as TTFB (time to first byte): how long the server takes to start answering. Google’s web.dev guidance treats a TTFB of 0.8 seconds or less as good. The broader Core Web Vitals, which Google uses to measure page experience, set these thresholds for a good result:
- LCP (Largest Contentful Paint), how fast the main content appears: 2.5 seconds or less;
- INP (Interaction to Next Paint), how fast the page reacts to a click: 200 milliseconds or less;
- CLS (Cumulative Layout Shift), how much the layout jumps: 0.1 or less.
PageSpeed Insights tests any public URL, and shows real-visitor data for these metrics when Google has collected enough of it. Search Console reports them for your whole site. Check them after a launch or a host change, then once a quarter. Hosting mainly affects TTFB; the other three also depend on your design, images and scripts.
Checklist before you buy web hosting
- Decide what the site must run: static pages, WordPress, a shop or a custom app.
- Pick the type: static, shared, managed WordPress, VPS or cloud.
- Register the domain in your own name, ideally away from your host.
- Compare plans on the renewal price, not the introductory one.
- Confirm free SSL, regular backups with self-service restore, and email if you need it.
- Check supported PHP versions, server location and support hours.
- Look for a data processing agreement if you collect personal data.
- Point the domain with nameservers or A and CNAME records, then verify with
dig. - Set up uptime monitoring and note your first TTFB and Core Web Vitals.
- Keep a backup outside the hosting account and test one restore.
Where to go from here
If you had to define web hosting in one line, it’s the rented, always-on home that turns your files into a public website. Choosing it comes down to matching the plan to what your site actually runs. Your next step: write down what your site needs today and in a year, then shortlist three plans and compare them on renewal price and backups. Keep the domain in your name, and everything else stays easy to change.
If you’re planning a new site or a redesign, browse our other guides on web design, development and hosting before you commit to a plan.
FAQ
Is web hosting a one-time payment?
No. Hosting is a subscription billed monthly or yearly, much like rent for the server space. The domain name is a separate purchase that also renews every year.
What happens to my website if I stop paying for website hosting?
In practice, hosts usually suspend an unpaid account, and the site stops loading even though the domain still exists. What happens to the files next, and when, depends on each host’s terms, so read them and keep your own backup.
Does web hosting include email?
Often, but not always. Many shared plans include mailboxes on your domain, while some hosts and most website builders expect you to use a separate email service. Check the plan details before you buy.
Can I host more than one website on one plan?
Often, yes. Entry-level plans sometimes allow a single site, while higher tiers let you add several domains to the same account. All the sites then share the plan’s storage and resources, so a busy one can slow the others.
How long does it take to get a website online?
Setting up the hosting itself is the quick part, and a one-click installer can put WordPress in place in minutes. The slow part is building the content, plus the DNS update when you point the domain.