Hello @david cockrell
David, I’d definitely share your concern. In a large Data Center environment, uncontrolled scripts or MCP-style tools can really hammer your indexing queue and bloat the database before you even realize what’s happening. It’s not just the API usage itself that's the problem; it’s the potential for indexing backlogs and hard-to-govern data exposure.
To answer your specific question, there actually isn't a direct Confluence setting to limit the size of a page body. You have the attachment size limit, but that won't touch the actual text content of a page. There is a technical "sledgehammer" you could use—the -Datlassian.rest.request.maxsize system property—but I’d be extremely cautious with it. Since it’s a global REST limit, lowering it to stop a rogue script could easily break legitimate integrations, marketplace apps, or even standard site imports.
A much safer and more effective route is to lean on native Rate Limiting. It’s designed specifically to protect DC instances from REST-heavy automations that go off the rails. Beyond that, I’d look at tightening your Personal Access Token (PAT) governance. Forcing expiry dates, limiting the number of tokens per user, and requiring reviewed service accounts for any "official" automation will give you way more control than a single page-size setting ever could.
If users are connecting external tools via PATs, you're also looking at a significant security and governance topic, as those tools are acting with that user's full permissions. Monitoring your access logs to identify high-volume REST users is usually the best way to catch these issues before they impact the rest of the team. Use rate limiting to protect the instance and PAT governance to protect the data.
Confluence does not have a built-in setting to enforce a maximum page body size.
You could use reverse proxy request size limits, instead. If you're running Data Center behind a reverse proxy like nginx or Apache, you can set a maximum request body size on the API endpoints (e.g., nginx's client_max_body_size or Apache's LimitRequestBody). This is probably the most direct way to reject oversized page creation requests before they even reach Confluence. It could be a solution to limit the size of a single request.
But, there is the additional problem with the frequency of requests. IMO rate limits alone are not sufficient to handle this. You can easily fit the rate limits, yet make Confluence useless if you create a new page in every 10 seconds...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.