r/CloudFlare • u/OPbhai • 8h ago
r/CloudFlare • u/theguymatter • 6h ago
Self-hosting Durable Objects: celld, workerd, Rivet, Cloudflare
Saw it on X.
r/CloudFlare • u/EmotionalAd2474 • 2h ago
When migrating DNS providers, what has broken even after a successful zone-file import?
reddit.comr/CloudFlare • u/mgkDante • 20m ago
Community How I run a free 3-city live transit map and Parquet analytics dashboard for ~US$10/mo on Cloudflare (3 Workers, R2, PMTiles, KV, Rate Limiting, Container fallback)
I run transit.yesid.dev, a free, bilingual (EN/FR), MIT-licensed live transit map and historical schedule reliability dashboard covering Montréal (STM), Ottawa (OC Transpo), and Gatineau (STO).
Earlier versions were backed by Postgres, and storage/hosting costs kept climbing for a mostly append-only, read-heavy GTFS-Realtime archive (~2.6M recorded stop arrivals per week on STM alone). I recently rebuilt v2 around daily clean Parquet files on Cloudflare R2 + read-only DuckDB + three Cloudflare Workers, bringing total infra to ~US$10/month.
Sharing the exact Cloudflare architecture and a few Workers/R2 details that worked well in production:
1. Three-Worker topology wired with Service Bindings and a named WorkerEntrypoint
transit1-web(apps/web): SvelteKit (Svelte 5) SSR Worker (@sveltejs/adapter-cloudflarewith static[assets],nodejs_compat,enable_request_signal). It never touches R2 directly. Instead, it callstransit-data-proxyover a Service Binding pinned to a namedQuestionsWorkerEntrypointthat isn't reachable on the public internet.transit-data-proxy(apps/data-proxy): Public API gateway ondata.yesid.dev/v2/*serving live vehicle snapshots, historical Record queries, clean Parquet downloads, and byte-range vector basemaps. Forwards uncached analytical queries over a Service Binding (ENGINE) totransit-engine.transit-engine(apps/engine): Edge Worker gateway validating bearer tokens withcrypto.subtle.timingSafeEqualover SHA-256 digests. It routes to a small Linux VM mirror running read-only DuckDB as primary, with a Cloudflare Container (@cloudflare/containers,standard-1,sleepAfter = "5m", backed by a SQLite Durable Object) fallback that readss3://transit-cleanstraight from R2 via DuckDBhttpfs.
2. Three R2 buckets (and why zero egress matters here)
transit-raw: Raw GTFS and GTFS-Realtime captures polled from all three agencies.transit-clean: Daily clean Parquet editions, street corridor tables,live/v2fleet snapshots, and self-hosted Protomaps.pmtilesvector basemaps served throughtransit-data-proxywith HTTP byte-range and conditional request support (zero map tile API keys). Riders and researchers can also download the daily Parquet files directly (e.g. 56 files / 355 MB for a 7-day STM window) without triggering egress bills.transit-question-answers: Shared R2 cache for settled historical DuckDB responses, trimmed automatically via a 30-day lifecycle expiration rule onsettled/v1/.
3. Multi-tier caching + KV fallback + native Workers Rate Limiting
- Analytical queries layer three tiers: POP-local Cache API (
caches.default), sharedtransit-question-answersR2 for settled date ranges, and aQUESTION_LAST_GOODKV namespace as a last-known-good fallback. - Native Workers
[[ratelimits]](QUESTION_LIMIT, 100 requests per 60s ontransit-data-proxy, plus a 60/60s telemetry limiter ontransit1-web) runs inside the cache-miss admission path, so Edge Cache and R2 hits never burn a user's quota.
4. Two Workers streaming details that paid off immediately
enable_request_signalend to end: Enabled on bothtransit1-webandtransit-data-proxy. If someone navigates away mid-query during streaming SSR, the abort signal propagates across the Service Binding so DuckDB stops doing wasted work.- Unbuffered streaming SSR with
Z_SYNC_FLUSH: Inhooks.server.ts, streamed HTML checksrequest.cf.clientAcceptEncodingand pipes through a NodezlibcreateGzip({ level: 1, flush: Z_SYNC_FLUSH })transform withencodeBody: 'manual', so each SvelteKit chunk decodes immediately in the browser instead of waiting behind an edge compression buffer.
The repo is MIT-licensed and runs locally with bun run dev straight against the public data.yesid.dev/v2/* endpoints (no local DB, API keys, or Cloudflare account needed).
- Live app: https://transit.yesid.dev/?ref=r_cloudflare
- Architecture and data pipeline write-up: https://yesid.dev/projects/transit-data-pipeline?ref=r_cloudflare
- GitHub (MIT): https://github.com/yesid-dev/transit
Happy to answer questions on the Service Binding / WorkerEntrypoint split, R2 byte-range PMTiles serving, the Containers fallback, or how the multi-tier cache behaves in production.
r/CloudFlare • u/Next-Collar-6748 • 2h ago
Cloudflare Systems Engineer interview
reddit.comr/CloudFlare • u/valvesa-cf • 1d ago
Cloudflare Blog Project Quantum Leap: Cloudflare will be fully post-quantum in 2027
r/CloudFlare • u/NotVeryFrightning • 4h ago
Open-source AI bot analytics that runs on your own Cloudflare account
I built Twinpage, an open-source tool that logs which AI bots (GPTBot, ClaudeBot, PerplexityBot and others) read which pages of your site. It runs entirely on Workers.
How it works:
- A Worker sits in front of your site (route, a small snippet, or a DNS record) and logs bot hits by page into D1.
- Bots from OpenAI, Anthropic, Perplexity, Google, Bing, Apple and Common Crawl are checked against the IP ranges those companies publish. The check is in memory; IPs are never stored. Spoofed "GPTBot" traffic shows up as unverified.
- Pages that only render with JavaScript are rendered with Browser Rendering for AI crawlers, since they don't run JS. People and Googlebot get the normal page.
- Tools that send
Accept: text/markdownget a markdown copy, only if 97% of its words are on the real page. - Optional weekly checks of whether ChatGPT, Claude, Gemini and Perplexity mention your site, with your own API keys (cron + D1).
Stack: Workers, Hono, D1, Browser Rendering, TypeScript. Small sites fit the free tier.
Repo (MIT engine, AGPL dashboard): github.com/twinpagedev/twinpage-core
Happy to go into the IP-range matching or the D1 schema if anyone's curious.
r/CloudFlare • • 13h ago
CloudFlare Added Post Quantum Encryption In CloudFlare Warp
CloudFlare Alr using the post quantum encryption Now
r/CloudFlare • u/oriben2 • 1d ago
open-source CRM for AI agents on Cloudflare Workers (apparently I had to)
Yes, I know. There are a million CRMs already. I built another one anyway and I have to get it off my chest.
In my defense, I built it for my own business first. I run an agency doing CRM implementation and GTM engineering, so I spend lots of time thinking about this stuff. I also love Cloudflare Workers, and I couldn't find a CRM that lived there. So now one does.
So the trend now, as I see it: agents are going to be (if they aren't already) the main users of CRMs, and humans are the guests.
Therefore, this CRM is built for agents:
- Any agent can plug in. MCP, CLI, REST and a TypeScript SDK. Pick your favorite.
- It's headless. There's a small control panel for the admin stuff, but no CRM UI to fight with.
- Have your agent vibe-code whatever front end you want on top of it, that fits exactly your business and your workflow.
- Apps you build with the TypeScript SDK authenticate using OAuth. All auth is implemented using Better Auth (or Clerk), not hand rolled.
- Permissions are granular, so you can hand an agent the keys without holding your breath. Per resource, an agent can read, propose a change for someone to approve (a human, or another AI agent), or just write.
- Gmail sync works today. More messaging platforms are coming, as long as they have an API.
- Every write to the CRM is auditable (there’s an event log)
- MIT licensed. Take it, fork it, do weird things with it.
It runs on Workers + D1 + R2 in your own Cloudflare account, so there's no hosted service and nobody else holds your data. I'm considering adding a Postgres adapter.
I'm sure there are rough edges. Please try it, tell me what worked/broke. If you like it, a star helps. And if you don't, that's fine too, I'll cry quietly.
Repo: https://github.com/benocodes/crm (Yes! Star/fork it now!)
Docs: https://docs.vibase.ai
r/CloudFlare • u/grunub • 7h ago
please help to see if i fell for this cloudflare scam
hi, i was pretty high and i was on a website that was legit but the cloudflare seemed to be hacked. I was pressing random buttons but kept opening the windows r thing but i was trying to hold it down ebcause i thought it was trying to get me to do something else. Anyways, I dont recall if i ran a command or not because my pc usually runs quick cmd prompts for other applications. When I opened the windows R thing again my last used command was the same that i used before (not the malicious line). How can i check to see if i actually did paste it?
r/CloudFlare • u/ycharif • 22h ago
Community I tested Cloudflare Error 1015 to see what actually triggers it
I recently ran some tests on a Cloudflare Free plan to understand exactly how Error 1015 behaves.
I configured a rate limiting rule, reproduced the error using curl and Chrome, and checked the HTTP responses and recovery time.
A few interesting findings:
- The blocked requests returned HTTP 429.
- The Retry-After header indicated the remaining wait time.
- Other pages remained accessible because the rule targeted a specific path.
- Repeated requests triggered new blocks.
I've documented the entire experiment, including screenshots, commands, and troubleshooting steps for both visitors and website owners, on my blog:
https://igprod.net/cloudflare-error-1015
Curious to hear how others configure their rate limiting rules without accidentally blocking legitimate visitors.
r/CloudFlare • u/gwoodbridge • 2d ago
Email Service Is Not For Sending Personal/Business Email
With all the posts recently on replacing Gmail or moving Email to Cloudflare, you can tell people aren't reading the docs. Email Service is for sending transactional email only. It also must comply with applicable anti-spam laws and regulations to maintain good standing and deliverability including
- CAN-SPAM Act (United States)
- GDPR (European Union)
- CASL (Canada)
- Include proper unsubscribe mechanisms
- Honor opt-out requests promptly
https://developers.cloudflare.com/email-service/
https://developers.cloudflare.com/email-service/platform/limits/
r/CloudFlare • u/theperipetycompany • 1d ago
Zero-dep Ed25519 + ML-DSA-65 OpenVEX signing & CBOM on CF Workers
I built CRA-Switch (operated by The Peripety Company, LLC), a zero-dependency Cloudflare Workers tool and Node 22 CLI for EU Cyber Resilience Act (CRA) Article 14 vulnerability monitoring, OpenVEX signing, and CycloneDX 1.6 lockfile CBOMs.
Yesterday's Dec 2 CISA/NSA/ONCD and industry PQC statement (accelerating EO 14412's 2030/2031 deadlines) surfaced a concrete problem in EU CRA compliance engineering: EU CRA Art. 13(13) (effective Dec 11, 2027) requires manufacturers to retain technical documentation and EU Declarations of Conformity for at least 10 years after placing on the market, or for the support period, whichever is longer (2036+). While the CRA does not mandate PQC or Ed25519 signatures, teams cryptographically signing 2026 compliance artifacts with Ed25519 alone produce audit bundles whose classical signatures outlive 2030/2031 federal and enterprise PQC transition timelines.
So in v1.2.0 I wired two things without adding a single runtime dependency (dependencies: {}):
- Hybrid Ed25519 + ML-DSA-65 (NIST FIPS 204) co-signing on Cloudflare Workers. Using the opt-in webcrypto_modern_algorithms flag (backed by BoringSSL in workerd), the Worker signs canonical JSON payloads for /.well-known/vex.json and 10-year customer-owned AWS S3 Object Lock evidence bundles with both Ed25519 and ML-DSA-65, exposing keys via /.well-known/jwks.json (OKP + AKP JWK, kid: mldsa65:cra-switch-pqc-v1). Existing Ed25519 verifiers keep working unchanged while PQC verifiers can validate the 3,309-byte ML-DSA-65 co-signature today.
- Dependency-level CycloneDX 1.6 CBOM (--cbom). Honest scope note upfront: this is a lockfile/dependency heuristic across npm, PyPI, Cargo, Go, and Maven — *not* source-code AST or call-graph analysis. It will miss stdlib crypto calls (e.g., node:crypto or Go crypto/rsa) and cannot prove whether an imported crypto package is reachable. For deep AST or binary analysis, run IBM cbomkit and pipe its CycloneDX 1.6 JSON in. Lockfile CBOM is the <1s zero-code-execution 80/20 pass to surface third-party classical RSA/ECC/Ed25519 packages with NIST FIPS 203/204 (ML-KEM / ML-DSA) migration hints.
On the CRA Article 14 side (reporting went live Sept 11, 2026), raw KEV/EUVD lockfile hits start in triage_required (4h internal SLA) rather than immediately tripping the statutory 24h ENISA clock, and CRA-Switch never auto-submits (autoSubmitted: false).
Zero-signup checks:
npx -y u/craswitch/cli scan --cbom --json
Sample output (lockfile heuristic, NOT AST):
Crypto Deps: 4 | Quantum-Vulnerable (Shor): 3 | Weakened Symmetric (Grover): 1
- elliptic@6.5.7 -> ML-DSA (FIPS 204) / ML-KEM (FIPS 203)
- jsonwebtoken@9.0.2 -> ML-DSA (FIPS 204) hybrid JWT/JOSE
- node-forge@1.3.1 -> ML-DSA (FIPS 204) + ML-KEM (FIPS 203)
- crypto-js@4.2.0 -> AES-256-GCM + SHA-384/512 via WebCrypto
Live canary (/api/health):
pqc=ML-DSA-65 kid=mldsa65:cra-switch-pqc-v1 sig=3309B verified=true tamper_rejected=true
Browser scanner (with 1-click CBOM Demo): https://craswitch.dev/tools/scanner
Live 2026 KEV/EUVD feed: https://craswitch.dev/feed
Live dual JWKS & hybrid VEX: https://craswitch.dev/.well-known/jwks.json and https://craswitch.dev/.well-known/vex.json
Remote MCP (3 free zero-auth tools): https://mcp.craswitch.dev/mcp
Happy to answer questions on BoringSSL ML-DSA-65 JWK serialization, lockfile CBOM false positives, or EU CRA triage edge cases.
(Disclosure: Independent B2B tool by The Peripety Company, LLC (Maine, USA); advisory aid only — not legal advice, never auto-submits to ENISA; not affiliated with or endorsed by CISA, NSA, ONCD, ENISA, Cloudflare, or IBM.)
r/CloudFlare • u/valvesa-cf • 2d ago
Cloudflare Blog Varlock is joining Cloudflare
r/CloudFlare • u/unknownhad • 2d ago
Open-sourced a personal webmail that runs entirely on Cloudflare (Workers + Email Routing + D1 + R2)
Built this because Gmail is removing “Send as” for third-party addresses (including Cloudflare Email Routing domains) in Jan 2027.
Flaremail is a single-user personal mailbox that runs fully inside your Cloudflare account no separate mail server needed.
Uses Workers, Email Routing, Email Sending, D1, R2, Queues and Access.
Repo (still early): https://github.com/unknownhad/emailflare
Happy to hear feedback or ideas from other Cloudflare users.r/CloudFlare • u/Glass-Camera9942 • 1d ago
can someone help me in this one
so guys i have been having a prblem with a site called https://www.dzexams.com/ witch i need it cuz i am a student and i need it for my studies but recently i will be stock on this thing for hours witch is annoying and yah i tried evrything i could and it didint work so can someone please tell me a sollotoin or perhapse tell me if i am like banned so i dont waist time on this thing and thanks :D
r/CloudFlare • u/CodingDragons • 1d ago
Discussion Building a Worker to Auto-Detect and Block Bot Attacks on a Woo Site
We see a lot of bots hitting our clients' sites, so I got to thinking, what about setting up a CF Worker to automate things? The one site I want to do this on is a Woo site on Kinsta and they have their own Cloudflare Pro. This site gets hit constantly and I'm tired of playing whack-a-mole by hand. Over the last few months we've dealt with:
- Card testing on checkout / Store API
- SQLi scans on search
- Spam account registrations and comment/review spam
- Crawlers hammering faceted filters (filter_, min_price, etc.)
- A bot using the host's temp domain to bypass CF entirely (since closed)
Today, twice in 12 hours, a PDP flood from ~900 rotating residential IPs using Google Shopping srsltid params with a spoofed same-site referrer. PDPs aren't cached (client needs instant stock), so it maxed out PHP and took the site down
Current setup is 12/20 custom rules and 2/2 rate limit rules (maxed on Pro). I have rules for card testing, SQLi, XML-RPC, filter crawling, ASN/VPN challenges on checkout, AI crawlers, and a catch-all bot block rule. Can't use Super Bot Fight Mode because it breaks ShipStation and other webhooks/API traffic, even with allow rules.
Problem is every new attack means me finding it in the logs after the fact and hand-writing a new condition.
My Plan is a Worker on a 5 min Cron that
- Pulls the last 5 min of traffic from the GraphQL analytics API
- Looks for patterns across the whole site, not just one attack type: request spikes by ASN, UA, path, query pattern, referrer, POSTs to checkout/login/register, etc.
- When something crosses a threshold, writes it into the existing catch-all block rule via the Rulesets API (no new rules, no IPs since they rotate)
- Logs each entry in KV with an expiry so it drops out after X days and doesn't block real customers forever
- Never touches verified bots, payment/shipping webhooks or /wp-json integrations
- Pings me when it adds or removes something
Questions
- Is GraphQL analytics on Pro enough for this or will I hit limits on breakdowns/lookback?
- Better signals than ASN/UA/path that are available on Pro? (I know JA4 is Bot Management only)
- Anything built into CF I'm overlooking that would do this without a Worker?
- Anyone already doing something like this, and what bit you?
Am I missing anything here? Solid?
r/CloudFlare • u/themx05 • 2d ago
Discussion What's new in GentleMail 0.9: drafts support, docked/expandable composer, like in Gmail.

GentleMail is an open-source webmail, REST API, webhooks and MCP server. It all runs as one Worker:
- Email Routing delivers incoming mail to the Worker's
email()handler. Email Service sends. - D1 holds mailboxes, conversations, drafts and users, in plain SQL with numbered migrations. Batches stay under D1's 100-bind limit.
- R2 holds message bodies and attachments. A draft's files are uploaded to R2 as you attach them, and a scheduled sweep removes orphans, keeping its cursor in D1.
- RedwoodSDK for the React server-rendered UI and server functions.
- Everything goes through bindings, so you never give it a Cloudflare API token. You deploy it with the Deploy button or by cloning the repo into Workers Builds.
One deployment serves unlimited domains and mailboxes for the $5 Workers Paid plan. That includes 3,000 sent emails a month, then $0.35 per 1,000; incoming is unlimited.
New in 0.9: drafts saved as you type, with optimistic versioning in D1 (UPDATE … WHERE version = ? RETURNING version) so two tabs can't overwrite each other. Also a Gmail-style docked composer, and replies inside the conversation.
Also we have a discord community been setup for announcements and respond to issues you might encounter. https://discord.gg/ZBbky2Nb6
Happy to answer questions about running a mail app on Workers: limits, Email Routing quirks, D1 schema choices.
r/CloudFlare
•
u/Fast-Engineering-721
•
3d ago
Community I built a mailbox for my domains that runs in my own Cloudflare account
I built cloudmail to run email for my own domains. You deploy it to your Cloudflare account and get a normal inbox: send, reply, search, labels, shared inboxes.
Gmail stops "Send mail as" in January. If you forward your domain to Gmail with Email Routing, you won't be able to reply from it after that. This is what I use instead.
Mail comes in through Email Routing to a Worker. Each mailbox is a SQLite database in a Durable Object, and attachments go to R2. You send with Cloudflare Email Service, or with your own SES or Resend account.
Demo, no sign-up: https://demo.trycloudmail.com
The source is available on GitHub: https://github.com/cloudmail-hq/cloudmail
Tell me what's missing for you.
r/CloudFlare • u/thomasruns • 2d ago
Question IP whitelisting only working on some IPs
I'm on a free account and I've set up a list of IP addresses then created a custom rule where IP Source Address is in that list that skips all other rules and checks. The list includes IPs used by an uptime status check website and 1 other IP for an AWS lightsail server.
The uptime servers have no problem accessing the site to do their checks, but the AWS server gets a challenge message. I've also tried creating an IP Access Rule for the AWS server, but that didn't work either.
When I look at the Events tab under Analytics I see tons of entries for the uptime IPs with an action type of Skip as expected. But when I search for the AWS IP there are no events.
I've tested this by sending a simple curl GET request from the AWS server to the domain running through Cloudflare. I've confirmed the IP of the server multiple ways including by running that same curl request against another domain that isn't using Cloudflare and checking the nginx logs.
I'm officially at a loss for how this could be possible with 1 rule and 1 list of IPs where they all work except 1. The only explanation I see is some kind of special rules for AWS servers that override user rules. Is that possible or is there something else I'm missing here?
r/CloudFlare • u/ProfessionalFlare • 2d ago
I got tired of Cloudflare's Pages Direct Upload not working in Workers, so I wrote my own client.
I needed a Worker to redeploy a Cloudflare Pages project on its own, no CI, no wrangler CLI, just a scheduled Worker pushing new files up. Cloudflare has a Direct Upload API for exactly this. The existing npm package for it does not work in Workers.
I opened it up and found fs/promises, path, and timers/promises imported at the top level. In a Worker. There's no filesystem in a Worker, so the whole thing fails to bundle. The package hasn't been touched since March 2023, so I'm guessing nobody building for Workers has needed it badly enough to fix it.
So I wrote pages-direct-upload.
What it does:
- Runs anywhere
fetchexists - Workers, Node 20+, Deno, Bun - Files go in as plain strings or
Uint8Array, nothing touches disk - About 17 KB minified, 7 KB gzipped, one dependency (
@noble/hashes, just for the BLAKE3 hashing) - Skips assets Cloudflare already has, batches and parallelizes the uploads, retries on transient failures, and refreshes the upload token if a big deploy outlives it
;
const result = await ;
;
The annoying part of building this was that Cloudflare doesn't document any of these endpoints. I ended up reading wrangler's own bundled source to figure out the actual request shapes, then set up a throwaway Pages project and tested the assumptions against the live API: does it validate file hashes, does _headers work if it's dropped in the manifest versus sent as a form part, how big can one upload batch actually get before it's rejected, how long does the upload token last. Some of that didn't match what I expected going in.
Docs: https://docs.proflare.dev/npm/pages-direct-upload
One rather annoying limitation: this can't run from a browser, since Cloudflare's API doesn't send CORS headers back. You'd have to host a smol proxy in front of it for that.
If you find anything that doesn't work, plz reply to this post, or contact me from https://proflare.dev/contact
r/CloudFlare • u/starlightprotag • 2d ago
Question can cloudflare analytics improve page view reporting for a nonprofit?
Update: Thank you all so much for your advice! I tried to explain the situation to management, and they ended up getting so confused that they found a third party who's willing to do some pro bono work to set us up with a dashboard and different engagement metrics that the funders will like more. Christmas is saved!
Hi all, I'm just a simple communications manager for a tiny nonprofit and I'm absolutely tearing my hair out trying to get even vaguely accurate information on page views and I'm hoping someone can help. Apologies in advance if I come across as completely clueless, I mostly do fundraising and have no expertise in this area.
Basically, our website has a series of informational guides, and we need to report back to funders with how many times those guides were looked at. We don't even need to narrow it down to how many unique visitors, just how many times a human being looked at a page with a guide on it. We're fine with counting AI agents that are giving our information to people using ChatGPT or whatever, but we've had an insane spike in views over the last two months that, as far as I can tell, is almost entirely AI crawlers.
We don't have the staff or budget to get into advanced analytics, and this is literally the only thing we need to know. We're currently using a Google Analytics account that was set up by someone whose job description was "lawyer who does data sometimes" and now it's on someone whose job description is "social media posts and event planning" (me).
We're not opposed to shelling out the $250/year for Pro if it makes getting the data we need easier and more accurate, but I'd be curious to hear from people who actually know what they're doing as to whether or not making the switch is likely to mitigate the problem.
ETA: I tried enabling bot fight and we were almost immediately de-indexed from Google. Possibly user error on my end, but 90% of our clients find us that way so leadership freaked out and we ended up switching it off (we were back in search results within a day).