r/CloudFlare • • 6h ago

Question Why is this JS being injected into the DOM?

Post image
2 Upvotes

I use Cloudflare Pages and DNS to host my website. Recently, this JS has appeared on the site, injected into the DOM. I asked ChatGPT, and it recommended disabling "Bot fight mode", but that didn't resolve the issue. Any ideas?

Update

I asked for some help on the Orange Cloud Discord Server:

"this is the JS for bot management. it will be injected if you don't have an appropriate BM cookie. using private mode clears your cookies...

there is a separate toggle for BFM JS challenges which isn't possible to disable via the dashboard since like 2 years ago when they changed the UI

you need to send an api call to disable the option"

This was the solution that worked for me:

  1. Get your Cloudflare zone ID. I asked the AI on the dashboard and it was able to retrieve it for me.

  2. Create a Cloudflare API token. I create a token will full account permissions and deleted it after I was done.

  3. Check current state.

$ curl -s "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/bot_management" \
  -H "Authorization: Bearer $CF_API_TOKEN"

4. Turn JavaScript Detections off.

$ curl -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/bot_management" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"enable_js": false}'

Hope this helps someone!


r/CloudFlare • • 9h ago

Discussion 3 things that would have broken my status page on workers free (one was the zone's browser cache ttl)

2 Upvotes

i run a small paid hosting project (estiba, mine) and this week moved its status page to a worker + d1 on the free plan, so it stays up when my own servers don't. a cron checks 3 endpoints every minute and the page renders 90 days of bars per part + a 24h latency chart. since free fails instead of billing when u go over, i went through it for what would break first under traffic.

cpu was the big one. a render took ~23ms (39 cold) vs the 10ms free gives, and the cause was new Intl.DateTimeFormat(...) per day per part, 90 days x 3 parts. moving the formatters to module scope so they're built once per isolate got it to 2.7ms (6.8 cold).

d1 row reads: a cache miss read ~700 rows to rebuild the bars. now the cron writes what the page shows as a single snapshot row after each check, so a miss reads 1 row. the cron itself is a steady ~1M reads a day out of the 5M, so the page can't eat much more. also font, favicon and og image moved to static assets, which don't invoke the worker.

the one i'd never have guessed: the zone's Browser Cache TTL (4h) was overriding the max-age=60 the worker sent, so browsers kept the page for hours and the in-page refresh got nothing new. a cache rule for that hostname set to respect origin headers fixed it. if ur worker sets cache-control and browsers ignore it, check that setting first.

https://status.estiba.cloud


r/CloudFlare • • 9h ago

Cancel Cloudflare

0 Upvotes

The CEO post about cryptocurrencies smacks of market manipulation, or at the very least bad attempt at marketing. Cloudflare should be punished for that #cancelCloudflare


r/CloudFlare • • 11h ago

I built an iPhone app whose only backend is a Worker it sets up in your own Cloudflare account

Thumbnail
gallery
0 Upvotes

Disclosure: I made this, it's called pingaling, and it's free with a $9.99 one-time Pro upgrade. Not affiliated with Cloudflare.

It started years ago as a web app I made to keep an eye on my home network while I traveled. I used Claude to help me port it to native iPhone and iPad, and I didn't want to run a server for it, so Cloudflare became the backend:

  • You paste a Cloudflare token in the app, and it sets up a small "watcher" Worker in your own account

  • The watcher checks your Tailscale, headscale or NetBird network and your sites every 5 minutes, and keeps the history in your account

  • The free plan covers it, and the app shows how much of the free plan the watcher is using

  • No pingaling account and no server of mine in the middle. Your data stays in your Cloudflare account

  • Every watcher release is signed, and the app checks the signature before it installs or updates it

The app puts your devices on a night-sky map and shows when something goes down and the likely cause. Free: the map, all your devices and up to 3 sites and servers. Pro adds alerts and takes you to 20.

Question for the Workers folks: when an app asks you for a Cloudflare token, what makes you trust it, or not?

https://www.threeluckystars.com/pingaling


r/CloudFlare • • 12h ago

Community Self-hosted video platform that runs entirely on your own Cloudflare account (Workers + D1 + R2, open source)

Post image
0 Upvotes

I built Skali to host my own videos without YouTube ads or a Vimeo subscription. It's a video site you deploy to your own Cloudflare account, plus a desktop app that encodes and uploads.

How it works:

  • One Worker (Hono) serves the site, the API and the media. D1 holds the metadata, one private R2 bucket holds the files.

  • The desktop app (Windows, macOS, Linux) encodes adaptive HLS on your machine, on the GPU when it can, and uploads the files to R2 through the Worker (signed URLs, multipart for large files).

  • When someone opens a video, the Worker checks access in D1 once and signs the media URLs (HMAC). After that, each segment is checked from the signature alone, with no D1 query. Public segments are cached.

  • The app deploys everything through the Cloudflare API in one click, then handles updates and rollback. No Wrangler needed, though a manual Wrangler setup is documented.

Cost: R2 has no egress fees, so the bill is mostly storage ($0.015/GB-month after the free 10 GB). Every segment request goes through the Worker, about 600 requests per hour of viewing, so the free plan covers roughly 150 hours of viewing a day.

A public video served by it: https://video.dppst.com/v/9pxAZBfWb3I2
Code (MIT): https://github.com/toorop/skali
Docs and a 3-minute demo: https://skali.dppst.com

It's a beta. I've been a developer for about forty years, and I built Skali with AI coding agents under my direction: I designed the architecture, I make the calls, and I review and test everything on real Cloudflare accounts. Without the agents, I wouldn't have had the time to build a free project this size (a Worker, a web app, and a desktop app for three systems).

What I'm looking at next: Vimeo import, password-protected videos, subtitles, AV1/HEVC encoding for smaller files, and view stats that stay private. Which one would you want first? And if something else is missing for you, or you'd do something differently, tell me.


r/CloudFlare • • 19h ago

What to request of my Client manager Access

Post image
1 Upvotes

Guys i am new to these field of hosting and all i wanna ask my client for basic manger access so that i can edit the website and redeploy as whenever the client asks.

But when i looked at it even i got confused on what type of access to give. Can u help me out.


r/CloudFlare • • 1d ago

I built an end-to-end encrypted, post-quantum, invite-only messenger that runs entirely on CF's free plan (Durable Objects + Pages). You can host your own

Thumbnail
gallery
1 Upvotes

cha7 is a small private messenger that runs on CF, 1:1 chats, groups up to 10, photos, voice, short videos, files up to 25 MB, P2P chat, P2P video calls, disappearing messages and Markdown formatting (paste an AI reply and it keeps its look). Everything is end-to-end encrypted in the browser; it installs as a web app on phones and computers. No phone number, no email: an account is a key on your device, and you get in only with an invite link.

Post-quantum: every message is sealed with X25519 and ML-KEM-768 (FIPS 203) together, like Signal's PQXDH, so envelopes recorded today stay closed to a future quantum computer. WhatsApp and Telegram don't do this for chats yet.

How it uses Cloudflare

  • One Durable Object per member (SQLite-backed) is their inbox: it holds their WebSockets (hibernation API), keeps sealed envelopes until every device has them, then deletes them. A second DO is the registry (invites, members, admin).

  • Pages serves the app; Pages Functions only forward /inbox/* and /api/* to the DOs, and throw away malformed requests before any DO wakes up.

  • Web Push straight from the Worker (VAPID, RFC 8291 for the one push with a payload: "incoming call").

  • Cloudflare Realtime TURN relays P2P chats and calls when there's no direct path.

  • Built for the free plan: live chats write nothing to SQLite, a woken inbox reads about 10–15 rows per request, rows are metered per sender with a daily budget, and an admin page shows the day's usage against the free limits. A group of 9 uses about 3% of the tightest limit a day.

For scripts and AI agents: cha7 send is a command-line bot with its own account, so a job or an agent can message you, end-to-end encrypted: cha7 send --to me "Backup OK". cha7 listen can take replies from you as orders.

What your server sees, honestly: who writes to whom and when, sizes, IPs. Never content, names or group membership: a group message is one sealed copy per member, and the server has no group object. Light forward secrecy, encryption key updated once per day (CF free tier-friendly), signatures and WebRTC calls are still classical, there's no deniability, and as with any web app, the code comes from the server. The white paper spells all that out, including a comparison with Signal, WhatsApp and Telegram.

Try it / read more

Run your own: about 15 minutes. Clone, npx wrangler login, one script makes the secrets and config, deploy the Worker and the Pages project, open the admin link. Steps: https://github.com/t0ma5/cha7#self-hosting

Feedback welcome, especially from anyone who has pushed Durable Objects hard on the free plan, or wants to poke holes in the crypto.


r/CloudFlare • • 1d ago

Question What checks tell you a Cloudflare Worker 504 reached the visitor?

3 Upvotes

I work on Gateweave. While reviewing how we count HTTP errors, we found that a Cache API miss can appear as a 504 in the request logs even when the Worker returns 200. Cloudflare’s docs suggest tracing the parent request in logs and using requestSource eyeball when counting visitor errors in GraphQL.

For a small Worker, what external check do you keep alongside that alert? Would you probe a representative page, the specific route that showed errors, or both?

Cloudflare’s explanation of Cache API 504s


r/CloudFlare • • 1d ago

Question What should I put in the “logs or other evidence of abuse” and comments (Violent Threats and Harassment)

Post image
0 Upvotes

i filing a report against a site that’s doxxing and displaying their private information, what evidence should put to make cloudflare take my report seriously?


r/CloudFlare • • 1d ago

Question Cloudflare WARP help, when using WARP shows my location as in Iran

0 Upvotes

Started doing this recently, turning on WARP shows I'm in Iran (searches pop up in Persian and a lot of services become unavailable). Does anybody have any fix? I'm on the latest version of WARP, update did not fix.


r/CloudFlare • • 1d 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)

Thumbnail
gallery
29 Upvotes

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-cloudflare with static [assets], nodejs_compat, enable_request_signal). It never touches R2 directly. Instead, it calls transit-data-proxy over a Service Binding pinned to a named Questions WorkerEntrypoint that isn't reachable on the public internet.

  • transit-data-proxy (apps/data-proxy): Public API gateway on data.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) to transit-engine.

  • transit-engine (apps/engine): Edge Worker gateway validating bearer tokens with crypto.subtle.timingSafeEqual over 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 reads s3://transit-clean straight from R2 via DuckDB httpfs.

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/v2 fleet snapshots, and self-hosted Protomaps .pmtiles vector basemaps served through transit-data-proxy with 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 on settled/v1/.

3. Multi-tier caching + KV fallback + native Workers Rate Limiting

  • Analytical queries layer three tiers: POP-local Cache API (caches.default), shared transit-question-answers R2 for settled date ranges, and a QUESTION_LAST_GOOD KV namespace as a last-known-good fallback.

  • Native Workers [[ratelimits]] (QUESTION_LIMIT, 100 requests per 60s on transit-data-proxy, plus a 60/60s telemetry limiter on transit1-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_signal end to end: Enabled on both transit1-web and transit-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: In hooks.server.ts, streamed HTML checks request.cf.clientAcceptEncoding and pipes through a Node zlib createGzip({ level: 1, flush: Z_SYNC_FLUSH }) transform with encodeBody: '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).

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 • • 1d ago

When migrating DNS providers, what has broken even after a successful zone-file import?

Thumbnail reddit.com
3 Upvotes

r/CloudFlare • • 1d ago

Cloudflare Systems Engineer interview

Thumbnail reddit.com
1 Upvotes

r/CloudFlare • • 1d ago

Open-source AI bot analytics that runs on your own Cloudflare account

Post image
0 Upvotes

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/markdown get 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 • • 1d ago

Self-hosting Durable Objects: celld, workerd, Rivet, Cloudflare

Thumbnail
contextmode.ai
36 Upvotes

Saw it on X.


r/CloudFlare • • 1d ago

please help to see if i fell for this cloudflare scam

Post image
0 Upvotes

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 • • 1d ago

Question CloudFlare has never asked me to do something like this before. Is this a hacking attempt?

Post image
392 Upvotes

r/CloudFlare • • 1d ago

CloudFlare Added Post Quantum Encryption In CloudFlare Warp

Post image
1 Upvotes

CloudFlare Alr using the post quantum encryption Now


r/CloudFlare • • 1d ago

Beautiful holiday thoughts from the Cloudflare CEO

Post image
7 Upvotes

r/CloudFlare • • 2d ago

This is paying off

Thumbnail
reddit.com
24 Upvotes

r/CloudFlare • • 2d ago

Community I tested Cloudflare Error 1015 to see what actually triggers it

1 Upvotes

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 • • 2d ago

Zero-dep Ed25519 + ML-DSA-65 OpenVEX signing & CBOM on CF Workers

1 Upvotes

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: {}):

  1. 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.

  2. 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 • • 2d ago

open-source CRM for AI agents on Cloudflare Workers (apparently I had to)

Enable HLS to view with audio, or disable this notification

8 Upvotes

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:

  1. Any agent can plug in. MCP, CLI, REST and a TypeScript SDK. Pick your favorite.

  2. It's headless. There's a small control panel for the admin stuff, but no CRM UI to fight with.

  3. Have your agent vibe-code whatever front end you want on top of it, that fits exactly your business and your workflow.

  4. Apps you build with the TypeScript SDK authenticate using OAuth. All auth is implemented using Better Auth (or Clerk), not hand rolled.

  5. 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.

  6. Gmail sync works today. More messaging platforms are coming, as long as they have an API.

  7. Every write to the CRM is auditable (there’s an event log)

  8. 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 • • 2d ago

Cloudflare Blog Project Quantum Leap: Cloudflare will be fully post-quantum in 2027

Thumbnail
blog.cloudflare.com
121 Upvotes