--- title: Welcome to Cloudflare | Cloudflare Docs description: Explore guides and tutorials to start building on Cloudflare's platform chatbotDeprioritize: false source_url: html: https://developers.cloudflare.com/ md: https://developers.cloudflare.com/index.md --- Featured * [AI tools](https://developers.cloudflare.com/style-guide/ai-tooling/) * [Troubleshoot errors](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/) * [Register a domain](https://developers.cloudflare.com/registrar/) * [Setup 1.1.1.1](https://developers.cloudflare.com/1.1.1.1/setup/) * [Get started with Cloudflare](https://developers.cloudflare.com/learning-paths/get-started/concepts/) **[View all docs](https://developers.cloudflare.com/directory/)** Developer Products * [Workers](https://developers.cloudflare.com/workers/) * [Pages](https://developers.cloudflare.com/pages/) * [R2](https://developers.cloudflare.com/r2/) * [Images](https://developers.cloudflare.com/images/) * [Stream](https://developers.cloudflare.com/stream/) **[View all developer products](https://developers.cloudflare.com/directory/?product-group=Developer+platform)** AI Products * [AI Search](https://developers.cloudflare.com/ai-search/) * [Workers AI](https://developers.cloudflare.com/workers-ai/) * [AI Crawl Control](https://developers.cloudflare.com/ai-crawl-control/) * [AI Gateway](https://developers.cloudflare.com/ai-gateway/) * [AI Agents](https://developers.cloudflare.com/agents/) **[View all AI products](https://developers.cloudflare.com/directory/?product-group=AI)** Zero Trust * [Access](https://developers.cloudflare.com/cloudflare-one/access-controls/policies/) * [Tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/) * [Gateway](https://developers.cloudflare.com/cloudflare-one/traffic-policies/) * [Browser Isolation](https://developers.cloudflare.com/cloudflare-one/remote-browser-isolation/) * [Replace your VPN](https://developers.cloudflare.com/learning-paths/replace-vpn/concepts/) **[View all Cloudflare One products](https://developers.cloudflare.com/directory/?product-group=Cloudflare+One)** *** ## Build with Cloudflare ```js export default { async fetch(request) { const html = `

Hello World

This markup was generated by a Cloudflare Worker.

`; return new Response(html, { headers: { "content-type": "text/html;charset=UTF-8", }, }); }, }; ``` [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwBOYQGYxAVgAcAJgniAXCxZtgHOFxp8BI8VLkKxAWABQAYXRUIAU2vYAIlADOMdM6jQrikmrwFiEio4YBsGACIoGhsADwA6ACtncNJUKDA7ELDI6Pik8LNLazsIbAAVOhgbHzgYGDA+AigrZAS4ADc4Z14EWAgAamB0XHAbMzNYtyQSXBtUOHAIEgBvUxISLroqXl8bCF4ACwAKBBsARxAbZwgAShW19ZJeK2uSA4hgMBIGEgADAB4AIQOADy5jKAE0AAoAUTeHzAAD4Hut-hRcHRkY9Hv8DgBGREACRsYDA6BIAHVMGBcP9kPisdiSP8YIiygcXCRgIgANYgGAkADuXRIAHM7DYEAQbLhyHQNiRzGSQLhUGBEDZKZgeZK4nTWSjmch0ZjfkRTIbThAQAgqEEbIKSAAlK5uKjOGxHd6fAA09yZbxscFmCGcPlWAfW4WexXsEEqNnCPnCthiKG9YCIh0QHogDAAqmUAGLYaThH2G9YAXwr2KrN3N1YrVaIZhUzDUGi0PH4QlEEhk8jE4kKVls9icrncnmaVB8fg0pGCoQioUIGhSvnSmRX4TIZLIBQsY5K5QTNTqDV4TRaSSs41My3C3KiAH0hiMMkmcrM8skq227adgE3Y6H2+iDkYzBmEAA) ```js export default { async fetch(request) { const data = { hello: "world", }; return Response.json(data); }, }; ``` [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwBWACwAOAGyjRARgBMsgJwBmAFwsWbYBzhcafASInS5i1QFgAUAGF0VCAFMH2ACJQAzjHQeo0e2ok2ngExCRUcMCODABEUDSOAB4AdABWHjGkqFBgzpHRcQkp6THWdg7OENgAKnQwjoFwMDBgfARQ9sipcABucB68CLAQANTA6LjgjtbWSd5IJLiOqHDgECQA3lYkJP10VLxBjhC8ABYAFAiOAI4gjh4QAJSb2zskvPYPi6EkDC9vb1OjjAYHQgRiAHdMGBcDEADSvHYAXyIVkRJCuEBACCoJAASvdvFQPI40h57OddI9UciESjrJpmNpdPoePwhGIpDIFMoVGV7E4XO4vD4-B0qIFgrpSBEorEooRdJkgjk8nKYmRQWRSrYBZUanUGrtmq1eO1Oul7DMrBsYsA4PEAPrjSa5GJqQpLYoZJEMxnM0Kswwckzc8wqZjWIA) ```js export default { async fetch(request) { /** * Replace `remote` with the host you wish to send requests to */ const remote = "https://example.com"; return await fetch(remote, request); }, }; ``` [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwBWAEwAWAIyDxwgJyTxcgFwsWbYBzhcafASInTZCpQFgAUAGF0VCAFNb2ACJQAzjHSuo0G8pIa8AmISKjhgOwYAIigaOwAPADoAK1dI0lQoMAcwiOjYxJTIi2tbBwhsABU6GDs-OBgYMD4CKBtkJLgANzhXXgRYCABqYHRccDsLC3iPJBJcO1Q4cAgSAG9zEhIeuipefzsIXgALAAoEOwBHEDtXCABKNY3NkmQAKlen59eSACU7RrgvDsJAABucRvYQSQAO7eI4kCBHYFHTwrOiUGFueEQdAkVwOXAkc5XG4QVwI9CfTavZBU3g2W5EuwQ4EMEiRI4QCAwVzKZDIeJhRp2BL04BpcxU84QEAIKhbaFwbz7Q6ncHoewAGiZJNudyITwAvprzIaiBY1MwNFodDx+EIxFIZPJFHJijZ7I4XO5PN5WlQ-AEtKRQuEouFCFo0v5Mtkw5EyGB0GQilYPWVKtValsGk1eC02ikbJNzKtIsAlVQAPojMZZSLKPLzAqpQ0Wy3WoK2vQOwzOkxyZgWIA) ```js export default { async fetch(request) { const destinationURL = "https://example.com"; const statusCode = 301; return Response.redirect(destinationURL, statusCode); }, }; ``` [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwA2AIzCAHABYpAZgkAmQQFYAXCxZtgHOFxp8BI8dLmKVAWABQAYXRUIAU3vYAIlADOMdO6jQ7qki08AmISKjhgBwYAIigaBwAPADoAK3do0lQoMCcIqNj45LToq1t7JwhsABU6GAcAuBgYMD4CKDtkFLgANzh3XgRYCABqYHRccAcrK0SvJBJcB1Q4cAgSAG9LEhI+uipeQIcIXgALAAoEBwBHEAd3CABKDa3tkl47e4W76HC-KgBVABKABkSAwSNEThAIDB3KpkMhEhFmg4ku9gBkXtt3lRPvcCCB3LZFmCSLJBKIiFiSJcICAEFQSIC7l5cajLjxLrwIGdFvc4m07EDgQAaEj4ulE8YOB5U7YAXxFlnlRCsGmYWh0eh4-CEYkkMnkSmUpTsjmcbk83l87SoASCOlI4UiMUihB0GUC2VyLuiZDA6DIJRsZoq1Vq9R2TRavEFVE67js00s62iwDgcQA+mMJjloqoCosiul5Wr1ZqQtqDHrjIazMpmFYgA) ```js export default { async fetch(request) { function MethodNotAllowed(request) { return new Response(`Method ${request.method} not allowed.`, { status: 405, headers: { Allow: "GET", }, }); } // Only GET requests work with this proxy. if (request.method !== "GET") return MethodNotAllowed(request); return fetch(`https://example.com`); }, }; ``` [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwAmQQDYAnMIkAOAIxiZYgFwsWbYBzhcafASPFTZCpQFgAUAGF0VCAFNb2ACJQAzjHSuo0G8pIa8AmISKjhgOwYAIigaOwAPADoAK1dI0lQoMAcwiOjYxJTIi2tbBwhsABU6GDs-OBgYMD4CKBtkJLgANzhXXgRYCABqYHRccDsLC3iPJBJcO1Q4cAgSAG9zEhIeuipefzsIXgALAAoEOwBHEDtXCABKNY3N-2peHyoSAFkDo9GAOXQEAAgmAwOgAO52XBnS7XW4PdbPZ7nCAgBAfKh2cEkABKNw8VFcdhOAANvhBfrgSAASVbnK43CAJcIU0YAXxCgK2oIhUISJIANI8kUjbgQQK4-AAWQQAVgFTxFJCOdjg8wQkuFSueILB4L8kQA4gBRCqRBXakhsi0itl3IiKq2O5DIEgAeSoYDoJBNFRI9LhEFcJHBmAA1iHvEcSBS3CQYAh0HE6AlHVBUCQYQzbsyfqMSABCBgMEhG02RB4otEfcmUgHAnmQ6EBxn2x1V9H7Q6nElHCAQGCSl3xMKNOwJXjoYAktuba3mNlECxqZgaLQ6Hj8ISiSTSeSKMTFGz2RwudyebytKh+AJaUihcJRFlqoJpfyZbKPyJkMFkIpWY8ykqapai2Boml4Fo2hSGxJnMVZImAOAYgAfRGMYskiZQ8nmApUjZZcVzXIINz0bdDD3EwxGYCwgA) [Learn more about Workers](https://developers.cloudflare.com/workers/) *** ![Developer Platform section image](https://developers.cloudflare.com/_astro/developer-platform-light.CZoHB6oh_Z2wp9EL.svg) ![Developer Platform section image](https://developers.cloudflare.com/_astro/developer-platform-dark.ChPufHpV_UQKLO.svg) ## Developer Platform The Cloudflare Developer Platform provides a serverless execution environment that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure. [Explore our Developer Platform](https://developers.cloudflare.com/directory/?product-group=Developer+platform) *** Install the WARP Client The Cloudflare WARP client allows individuals and organizations to have a faster, more secure, and more private experience online. [Get started](https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/warp/) Set up a tunnel Cloudflare Tunnel provides you with a secure way to connect your resources to Cloudflare without a publicly routable IP address. [Set up a tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/) ![Zero Trust section image](https://developers.cloudflare.com/_astro/zero-trust-light.BvZ3bzoV_2oueAh.svg) ![Zero Trust section image](https://developers.cloudflare.com/_astro/zero-trust-dark.Dary5ape_2oueAh.svg) ## Zero Trust Cloudflare Zero Trust replaces legacy security perimeters with our global network, making the Internet faster and safer for teams around the world. *** ## Other docs you might also like Install an Origin CA certificate Use Origin Certificate Authority (CA) certificates to encrypt traffic between Cloudflare and your origin web server and reduce origin bandwidth. [Install Origin CA](https://developers.cloudflare.com/ssl/origin-configuration/origin-ca/) Change your nameservers Make Cloudflare your primary DNS provider by updating your authoritative nameservers at your domain registrar. [Update nameservers](https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/) SSL/TLS Encryption mode Your domain's encryption mode controls how Cloudflare connects to your origin server and how SSL certificates at your origin will be validated. [Set encryption mode](https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/) Allow traffic from specific countries only Block requests based on a list of allowed countries by configuring a custom rule in the Web Application Firewall (WAF). [Allow traffic from specific countries only](https://developers.cloudflare.com/waf/custom-rules/use-cases/allow-traffic-from-specific-countries/) *** **Community** Share ideas, answers, code and compare notes with the Cloudflare community. * [Discord](https://discord.cloudflare.com/) * [Twitter](https://x.com/CloudflareDev) * [Community forum](https://community.cloudflare.com/) **Open source** Cloudflare contributes to the open-source ecosystem in a variety of ways, including: * [GitHub projects](https://github.com/cloudflare) * [Sponsorship projects](https://developers.cloudflare.com/sponsorships/) * [Style guide](https://developers.cloudflare.com/style-guide/) **Blog** Get the latest news on Cloudflare products, technologies, and culture. * [Read the blog](https://blog.cloudflare.com/)