The Cloudflare cdn-cgi/rum? 404 error is a common issue that website owners encounter when using Cloudflare’s Web Analytics and Real User Monitoring (RUM) features. This error occurs when your website attempts to access the /cdn-cgi/rum?
endpoint but receives a HTTP 404 Not Found
response instead of the expected data.
This HTTP 404 error specifically relates to Real User Monitoring functionality that collects visitor performance metrics to analyse website speed and user experience. When RUM is enabled in Cloudflare Web Analytics, a JavaScript snippet is automatically injected into your site that makes POST requests to the /cdn-cgi/rum?
endpoint.
This endpoint is managed entirely by Cloudflare and serves various purposes across different Cloudflare products, including bot protection, image transformations, email obfuscation, and analytics collection.
Several factors can trigger this issue:
The error typically manifests as JavaScript console errors or failed network requests visible in browser developer tools, though it won’t appear in your origin server logs since the request is handled by Cloudflare’s middleware.
The most straightforward solution to resolve the the cdn-cgi/rum? error is disabling RUM entirely:
Add comprehensive crawler blocking to prevent search engines from encountering these errors:
User-agent: *
Disallow: /cdn-cgi/
This approach resolves Google Search Console errors related to the Cloudflare cdn-cgi/rum? 404 error within approximately 48 hours without affecting your site’s organic performance.
If you need RUM functionality, ensure proper configuration:
Prevent false positives in security scanning tools:
/cdn-cgi/
to your scanner’s exclusion listYou Might Be Interested In
The Cloudflare cdn-cgi/rum? issue does not negatively impact your organic search performance or website rankings. Google and other search engines understand that cdn-cgi endpoints contain no valuable content for indexing purposes.
However, the error can create unnecessary noise in monitoring tools and may consume browser resources through failed network requests. Resolving the issue improves overall site monitoring clarity and reduces console errors.
To prevent future occurrences:
Most websites can safely disable RUM without losing valuable analytics data, as alternative monitoring solutions often provide more comprehensive insights into user behaviour and site performance. Following these resolution steps will eliminate the problem whilst maintaining your website’s functionality and search engine visibility.