Dispatcher inconsistently blocks .children.json endpoints in AEM

Adobe Experience Manager (AEM) Dispatcher instances may inconsistently block .children.json endpoints when filter rules, virtual host settings, or web server configurations differ between instances. To resolve the issue, align the Dispatcher and web server configurations, clear the relevant caches, test each instance independently, and verify that the endpoints return HTTP 404.

Description description

Environment

  • Adobe Experience Manager (AEM) Dispatcher (all versions)
  • Any supported web server, for example, Apache HTTP Server or Nginx

Issue/Symptoms

  • After implementing security-hardening rules to block selector exploits and direct file exposure, some Dispatcher instances correctly block .children.json endpoints and return HTTP 404.
  • Other Dispatcher instances allow the same requests and return HTTP 200 with content.

Root cause

Configuration or enforcement differences between Dispatcher instances can cause inconsistent blocking behavior. These differences may involve Dispatcher filter rules, virtual host settings, or web server configurations.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Verify that the Dispatcher configuration files, including filter rules and virtual host settings, are identical across all Dispatcher instances.
  2. Clear the Dispatcher cache on each instance to ensure that stale content isn’t served.
  3. Compare the virtual host and associated filter and farm configurations across all Dispatcher instances, focusing on the handling of.children.json requests.
  4. Review the web server configuration, such as Apache HTTP Server or Nginx, on each instance to ensure that any additional rules are consistent and correctly block the targeted endpoints.
  5. Test each Dispatcher independently by routing requests directly to it and verifying the HTTP response for: /content/dam.children.json
  6. If the Dispatcher configuration is correct but the issue persists, implement blocking rules at the web server layer to enforce the restriction.
  7. Verify that requests to.children.json endpoints are blocked and return HTTP 404 across all Dispatcher instances.
recommendation-more-help
experience-cloud-kcs-help-kbarticles