Cloudflare is an internet infrastructure company. Many people know it for its CDN and site protection, but it also offers DNS, edge code execution and AI services. Check the official site for the current list of products.

How it works

When you put your domain on Cloudflare, traffic passes through its network before reaching your server. This allows:

  • Cache: store copies of files close to the visitor, making the site faster (that's the idea of a CDN).
  • Protection: filter malicious traffic, such as denial of service attacks.
  • DNS: translate the domain name to the server address.

Additionally, there are platforms to run code without managing servers, in a serverless style, in several points around the world.

Practical example

You have an online store hosted on a small server. On promotion day, access spikes and the site gets slow. By putting the domain behind Cloudflare, images and static files start being served from cache, relieving the server.

Domain pointing is usually done via the DNS panel:

Terminal
# Verificar para onde o domínio aponta
dig +short meusite.com.br

If the result shows Cloudflare addresses, traffic is passing through it.

What it's for

  • Speed up sites with cache and delivery close to the user.
  • Protect applications against abusive traffic.
  • Manage DNS in one place.
  • Run edge functions for lightweight APIs, redirects and simple logic.
  • Host static sites and apps on the company's own platforms.

For people who use AI agents to create projects, Cloudflare is a common deployment destination, and many agents know how to generate configuration for it.

Difference between Cloudflare and traditional hosting

Traditional hosting stores and runs your site on a server. Cloudflare usually sits in front, accelerating and protecting, and also offers edge hosting options. Many projects use both at the same time.