# Connection methods compared - Agent Delivery Network | Agent Delivery Network

<!-- adn:geo-lead -->
> DNS connect, Cloudflare Snippet, Next.js middleware, and agent hostname - what each does, who it suits, and what counts toward your plan quota.

<!-- /adn:geo-lead -->

Back to Help ADN supports four ways to put machine traffic on ADN. DNS connect is the default in the dashboard wizard.
## Summary
 Method Code or OAuth? People see Agents see Best for
 DNS connect No Your origin (via ADN proxy path) Full ADN on www/apex Every stack; fastest go-live
 Cloudflare Snippet OAuth + Snippet Your origin ADN at the edge in your zone Cloudflare already fronts the site
 Next.js middleware Deploy snippet Your origin ADN in middleware Next.js on Vercel or Node
 Agent hostname DNS CNAME only Unchanged on www ADN on agents.* only Discovery without changing www
## DNS connect (default)
 • One DNS record on www or apex after ownership TXT verification.
 • Set the origin URL in the dashboard (real hosting URL, not the ADN hostname).
 • Page views on the connected hostname count toward your plan quota.
 • Included on Starter and Pro.
## Cloudflare Snippet (optional)
 • Requires Connect Cloudflare OAuth in the dashboard.
 • ADN installs a Snippet and tiered WAF skip rule in your Cloudflare zone.
 • Your WAF, caching, and kill switch stay on your origin.
 • Use when you already run Cloudflare and want zero change to where browsers terminate.
## Next.js middleware (optional)
 • Copy the middleware snippet from Domains → Connect.
 • Redeploy the app. Agents get structured responses; humans stay on your stack.
 • Common for Vercel-hosted Next.js.
## Agent hostname (optional)
 • CNAME agents.yoursite.com (or your chosen label) to ADN.
 • Main site DNS stays untouched. Agents that use the pointer get ADN; others may still hit the origin.
 • Useful when you are not ready to proxy www .
## Pay-per-crawl and edge blocks
 If you enable crawl pricing, named AI crawlers must reach ADN without an upstream 403. See Allow AI crawlers through to ADN .
## Related
 • Getting started
 • Origin access and crawler allowlisting
 • Free site scan (no signup)
 Ask ADN