How to Build a Website Without a Website Builder, Step by Step With AI
Quick answer
To build a website without a website builder, register a domain, have an AI assistant such as Claude write the site's code, store the code on GitHub, host it for free on Cloudflare Pages, point your domain at it, then add search, analytics and legal pages. A simple site can go live in a day for about the cost of the domain.

You don’t need a website builder to make a website. An AI assistant can write the whole site for you, and free tools can store and host it. This guide walks through the same steps used to build this site, in order. Each step says what you need to do, so you can follow it yourself or paste it into your AI assistant and work through it together. Short on time? Copy the ready-made prompt and let your AI lead the way.
What you need before you start
- An AI assistant that can write and edit files, such as Claude. A desktop or coding version that works with files on your computer makes this much easier than a chat window.
- A domain name, or a few ideas for one.
- A free GitHub account to store your site’s code.
- A free Cloudflare account to host the site and manage your domain.
- About a day, plus time to write your text.
| Website builder | Built with AI (this guide) | |
|---|---|---|
| Monthly cost | A paid plan, usually monthly or yearly | Free hosting; you pay for the domain |
| Speed | Good | Very fast (plain pages, no page builder) |
| Who owns the code | The builder | You |
| Moving later | Hard: you usually rebuild | Easy: the code goes anywhere |
| Editing | Drag and drop, any time | Ask your AI, or edit the text files |
| Help when stuck | Builder’s support team | Your AI assistant |
Step 1: Decide what the site is for
Write one sentence about what visitors should do on your site: book a call, buy something, read your writing or contact you. Give that sentence to your AI and ask it to propose a list of pages. Most small sites need only a home page, an about page, a page for what you offer, a contact page, and legal pages. Cut anything you don’t need.
Step 2: Register your domain
Pick a short name that’s easy to spell and say out loud, then register it at a domain registrar. A .com typically costs about $10 to $25 a year (prices checked October 2026). While you’re there:
- Turn on WHOIS privacy so your name and address aren’t public.
- Turn on auto-renew so the domain never lapses.
- Find the nameservers setting. You’ll change it in Step 6.
If the name you want is already registered, you may still be able to buy a domain that is already taken.
Step 3: Have your AI build the site
Tell your AI what you want: the purpose, the pages, the look and any examples you like. Ask it to build a static site, meaning plain, pre-built pages that load fast and are cheap to host, using a static site generator such as Astro. Ask it to include the basics search engines and AI tools look for:
- a unique title and description on every page
- a sitemap and a robots.txt file
- structured data (Article, Organization, Breadcrumb)
- fast, mobile-friendly pages with alt text on every image
- a 404 page and a favicon
Look at each draft in your browser and tell the AI what to change. Repeat until you’re happy.
How we built this website
This site was built exactly this way. Its owner described the topics and the look, Claude wrote the code, GitHub stored it and Cloudflare Pages put it online. It was live in under 24 hours, for little more than the cost of the domain.
Step 4: Store the code on GitHub
Create a free GitHub account and a new private repository for the site. Your AI can give you the exact commands to upload the code, or connect to GitHub for you if you sign in. From now on, every change the AI makes is saved there with a history, so nothing gets lost and any mistake can be undone.
Step 5: Host it on Cloudflare Pages
In the Cloudflare dashboard, go to Workers & Pages → Create → Pages → Connect to Git, then choose your repository. Cloudflare’s Pages documentation covers each setting. Use the build settings your AI gives you; for an Astro site the build command is npm run build and the output folder is dist. Cloudflare builds the site and gives it a free address ending in .pages.dev.
From then on, every change pushed to GitHub goes live in about a minute. Changes on a separate branch get their own preview link, hidden from search engines, so you can check new pages before they go live. Preview links are open to anyone who has the address, so if your drafts are sensitive, turn on Cloudflare Access for previews in the project’s settings.
Step 6: Connect your domain
- In Cloudflare, choose Add a domain, enter your domain and pick the free plan.
- Cloudflare imports your existing DNS records. Delete any old ones you don’t need, such as parking pages or a previous site.
- At your registrar, replace the nameservers with the two Cloudflare gives you.
- In your Pages project, open Custom domains and add both
yourdomain.comandwww.yourdomain.com. - Add a redirect rule so
wwwsends visitors to the main address. That way Google sees one site, not two copies.
Nameserver changes usually take effect within a few hours. If the site doesn’t load for you right away, your computer may still be holding the old address; try another network or wait a little.
Step 7: Launch and get found
Legal pages and contact form. Ask your AI for a privacy policy, a cookie policy and terms that describe what your site actually does. For a contact form, ask it to add a spam trap and Cloudflare Turnstile, a free “verify you are human” check. To get messages, turn on Cloudflare Email Routing to create an address like [email protected] that forwards to your own inbox. The AI can then have the form email you from that address.
Search engines.
- Add your domain to Google Search Console and verify it with the DNS record it gives you.
- Submit your sitemap, then use URL Inspection → Request indexing on your most important pages.
- Add the site to Bing Webmaster Tools. You can import it from Search Console. Bing also feeds ChatGPT search and Microsoft Copilot.
- Ask your AI to set up IndexNow, so Bing hears about new pages the moment you publish.
Analytics. Create a Google Analytics 4 property and give the Measurement ID to your AI. Ask it to add a cookie consent banner too, since visitors in some countries must agree before analytics runs.
Test before you announce it.
- Open every page on a phone.
- Click every link.
- Send yourself a message through the contact form.
- Check for the padlock (https) in the address bar.
Copy this prompt and let your AI do most of the work
Fill in the brackets, paste the whole thing into your AI assistant, and it will lead you through every step in this guide. You’ll still create the accounts and click the buttons it tells you to, but it does the planning, the code and the writing.
You're going to help me build and launch a website without a website builder.
Work one step at a time, wait for me to confirm each step, and tell me exactly
what to click.
ABOUT MY SITE
- What it's for: [one sentence]
- Who it's for: [my audience]
- Pages I want: [home, about, services, contact... or "suggest them"]
- Look and feel: [describe it, or list sites I like]
- My domain: [yourdomain.com, or "help me choose one"]
PLEASE DO THIS
1. Suggest the pages and a short outline for each. Wait for my OK.
2. Build it as a fast, mobile-friendly static site (for example with Astro) with
a unique title and description on every page, a sitemap, a robots.txt that
allows search and AI crawlers, structured data (Organization, Article,
Breadcrumb), alt text on images, a favicon and a 404 page.
3. Write a first draft of every page's text. Flag anything I should check.
4. Walk me through putting the code in a private GitHub repository.
5. Walk me through hosting it on Cloudflare Pages and connecting my domain:
nameservers, the bare domain and www, a www redirect, and HTTPS.
6. Write a privacy policy, cookie policy and terms that match what the site
actually does.
7. Add a contact form with a spam trap and Cloudflare Turnstile, and set up
Cloudflare Email Routing so messages reach my inbox from an address on my
domain.
8. Walk me through Google Search Console (verify, submit the sitemap, request
indexing), Bing Webmaster Tools and IndexNow.
9. Add Google Analytics 4 with a cookie consent banner.
10. Give me a launch checklist, then a simple plan for adding new pages each
week.
RULES
- Never ask me to paste passwords, API keys or secret keys into this chat.
Tell me where to enter them myself.
- Explain any DNS change before I make it.
- Keep it simple, and tell me before anything costs money.
Stay safe while the AI helps
- Enter passwords and secret keys yourself, in the website that asks for them, never in the chat.
- If you give the AI access to an account, use a key limited to one domain or one project.
- Review each change before you approve it, especially DNS changes.
- Keep your code repository private, and turn on two-factor sign-in for your registrar, GitHub and Cloudflare accounts.
- You’ll do a few things yourself: create accounts, approve sign-ins and tick “verify you are human” boxes.
After launch: read your numbers, and ignore the bots
Search Console shows how Google sees your site. Open these reports once a week:
- Performance: the searches you appear for, how often you’re shown (impressions), how often people click, and your average position.
- Pages: which pages are indexed, and why any aren’t.
- URL Inspection: whether a page is indexed. You can also request indexing for a new or updated page here.
Expect a few days before any data appears, and a few weeks before it means much. Search Console only counts real Google searches, so it’s your most reliable view of search traffic.
Google Analytics shows everyone who visits, including bots that slip through, and on a new site that can be a lot. In this site’s first week, about half of all page views were bots asking for pages that never existed here: login pages like /wp-login.php, shop and checkout pages, and random file paths. Signs a visit isn’t a real person:
- Zero or near-zero engagement time, often with a single page view.
- A spike of “direct” visits from cities known for big data centers rather than real customers.
- Referrals from sites that have nothing to do with you, often called referral spam.
- Visits to your “page not found” page for addresses you never created.
What to do about it:
- Don’t panic, and don’t chase the totals. Judge real interest by engaged sessions, search clicks and messages through your contact form.
- Leave junk addresses as real “page not found” errors. Redirecting them all to your homepage looks like a low-quality site to Google. Only redirect old addresses that have a genuine new home, such as
/terms-of-useto your terms page. - Exclude your own visits with an internal-traffic filter in Google Analytics, so testing doesn’t inflate your numbers.
- Check your host’s bot report. Cloudflare’s AI Crawl Control shows which crawlers visit, including Googlebot, Bingbot and AI crawlers like GPTBot and ClaudeBot. Make sure the ones you want aren’t blocked.
How to turn bot blocking on or off in Cloudflare
- One crawler at a time: open your domain in the Cloudflare dashboard, then AI Crawl Control → Security. Each crawler has a Block crawler switch. If you want to be found and cited, keep Googlebot, Bingbot and the AI search crawlers allowed (OAI-SearchBot and ChatGPT-User for ChatGPT, Claude-SearchBot, PerplexityBot).
- All AI bots by type: go to Security → Settings → Bot traffic → Configure AI bot policies to block whole groups, for example AI training crawlers, while still allowing search.
- Bot Fight Mode: in the same Bot traffic list, the Bot fight mode switch challenges simple bots across your whole site. It can also block automation you rely on, such as uptime checks, and on the free plan you can’t make exceptions to it. Many small sites leave it off, since junk requests for missing pages just get a “page not found” and cost nothing.
Optimize for search engines and AI answers
Search engines and AI assistants reward the same things: clear answers, honest authorship and pages that are easy to crawl. Ask your AI to check every page against this list.
- Answer first. Start each page with a short, direct answer to the question it targets, then go into detail. Use question-style headings, tables for comparisons and a short FAQ.
- One topic per page, with a unique title (about 60 characters) and description (about 150 characters).
- Add what only you know. A real example, your own numbers, a screenshot or a lesson learned. Google’s guidance says pages that add first-hand experience do better than pages that repeat common knowledge.
- Be honest about who made it. Have an About page, and say plainly if AI helped write your pages.
- Cite sources and date your prices, for example “prices checked October 2026”.
- Link related pages to each other with descriptive link text, so no page is left without links pointing to it.
- Use relevant images, each with alt text, and give every page its own share image instead of your logo.
- Keep one version of each page. Redirect
wwwto your main address, use canonical tags, and keep preview or staging copies out of search with a noindex tag. - Keep your sitemap accurate, with real “last updated” dates. Resubmit it in Search Console and Bing, and use IndexNow for new pages.
- Stay fast and mobile-friendly. Static pages already are. Check the Core Web Vitals report in Search Console once you have traffic.
- Let AI search crawlers in. ChatGPT search and Copilot rely on Bing’s index, so make sure Bing can crawl and index you.
- Publish steadily and update old pages. A few well-checked pages a week beats dozens of thin ones at once, and refreshing an older page counts too.
After launch: add content
AI can draft far more articles than you could write alone, but don’t publish them unchecked. Read each draft, fix anything wrong, and add something only you know: a real example, a number or a screenshot. Check every fact and price against a source, and publish a few pages at a time rather than dozens at once.
Automate the busywork with n8n
Once the site is running, a workflow tool like n8n can handle repetitive jobs. You can run it yourself for free or pay for the hosted version. Your AI can build the workflows for you. Some ideas:
- Each morning, take the next topic from a Google Sheet, have an AI draft an article, and open it on GitHub for you to review before it goes live. We built one like this for this site.
- Post each new article to your social accounts when it’s published.
- Send yourself a weekly summary of your Search Console and Analytics numbers.
Keep a person in the loop: let n8n prepare the work, and approve anything that publishes or posts in public yourself.
Prefer a website builder? Use Squarespace
If you’d rather click and drag than work with an AI, use a website builder. Our pick is Squarespace. We think it’s the best website builder for most people:
- The best-looking templates. Designer templates make even a simple site look professional, with no design skills needed.
- Everything in one place. Hosting, a free SSL certificate and built-in SEO tools come with every plan, and annual plans include a free domain for the first year.
- Ready to sell. Online store, bookings and payments are built in when you need them.
- Help when you need it. Squarespace’s customer care team is available 24/7.
- Easy to start. Plans start at $19 a month billed annually, and there’s a 14-day free trial with no credit card (prices checked October 2026).
If you go with Squarespace, Steps 1, 2 and 7 still apply. Squarespace replaces Steps 3 to 6, and when you connect a domain you registered elsewhere, it shows you which DNS records to add at your registrar.
Other builders worth knowing:
- Wix: very flexible drag-and-drop editing, with a free plan to try it.
- Shopify: built for larger online stores.
- WordPress.com: good for blogs, with thousands of themes and plugins.
- Webflow and Framer: more design control, popular with designers.
- Hostinger Website Builder: a low-cost option bundled with hosting.
Frequently asked questions
Which AI should I use to build my website?
We built this site with Claude, and we'd recommend it: it writes the code, explains every step and can work with the files on your computer. Your favorite AI assistant will also work, as long as it can create and edit files. A low-cost monthly plan is enough, and you can cancel once the site is live.
Do I need to know how to code?
No. The AI assistant writes the code and explains each step. You need to be comfortable creating accounts, copying settings between websites and checking the result in your browser. When something breaks, describe what you see and the AI fixes it.
How much does it cost to build a website this way?
Very little. You pay for the domain, about $10 to $25 a year for a .com, plus a low-cost AI plan such as Claude's for the month or two you're building. GitHub private repositories and Cloudflare Pages hosting are free for a small site. A designer or a website builder plan usually costs far more over a year.
How long does it take?
A simple site of a few pages can be live in under a day. Domain and nameserver changes can take a few hours to reach everyone, so start that step early. Writing and checking the content usually takes longer than the build.
Why not just use a website builder?
You can, and for many people it's the right choice. If you go that way, we recommend Squarespace: the best templates, hosting and SSL included, and 24/7 support. Building with AI instead gives you a faster site, no monthly plan and full ownership of the code.
Can the AI do everything for me?
Almost. It can write the code and walk you through every screen, and with the right access it can change settings for you. You still create the accounts, approve permissions, complete "verify you are human" checks and enter passwords and secret keys yourself.
Sources
- Cloudflare Pages: Git integration
- Cloudflare Pages: Limits (free plan)
- GitHub Docs: Creating a new repository
- ICANN: Registering a domain name
- Google Search Central: SEO Starter Guide
- Google Search Console Help: Verify your site ownership
- Porkbun: Domain pricing
- Google Search Central: Creating helpful, reliable, people-first content
- Google Search Central: AI features and your website
- Squarespace: Pricing and plans
- Cloudflare: Bot Fight Mode