Skip to content

AEM Dispatcher Filter Tester: Which Requests Does /filter Allow?

Paste Dispatcher /filter rules and a list of URLs: see which requests are allowed or denied, which rule decides, and how each URL splits into path, selectors and extension.

Written in December 2026 and checked against Adobe's Dispatcher documentation and the default filters in the AEM project archetype.

Paste a /filter section and the requests you care about: the tester shows which ones Dispatcher lets through, which rule makes the call, and how each URL splits into the parts that /path, /selectors, /extension and /suffix are matched against. Everything runs in your browser and nothing you paste leaves the page.

The rules box starts with the filters the AEM project archetype ships for Cloud Service (Apache 2.0), minus the AEM Forms block. Paste your own filters.any under them to see the two together, the way Dispatcher reads them.

How does Dispatcher pick between allow and deny?

The last rule that matches wins. Adobe's Dispatcher configuration page puts it as "the last applied filter pattern is effective." A request no rule matches goes back to the web server as a 404.

So a filter file opens with a deny for "*" and opens paths after it. Put the same deny at the bottom and you've blocked the site.

A rule matches only when every property in it matches. /aem0017 in the archetype needs both a listed selector and a listed extension, so it denies en.infinity.json and leaves en.model.json to the rules around it.

Double quotes or single quotes?

  • Double quotes hold a glob. * stands for any run of characters, slashes included, and the pattern has to cover the whole value: "/content/*" matches /content/wknd/us/en.html but not /conf/wknd.
  • Single quotes hold a POSIX extended regular expression, which Dispatcher accepts from version 4.2.0 on: '(GET|HEAD)'.

Adobe's page doesn't say whether a regex has to match the whole value or just part of it. The archetype's own rules settle it. /aem0011 allows any GET whose extension matches '(css|eot|gif|ico|jpeg|jpg|js|…)', on any path; if a partial match counted, json and jsp would pass as js, and /bin/querybuilder.json and /crx/de/index.jsp would be open on any site that kept these defaults. So the tester matches a regex against the whole value. Untick the box to see what the other reading would let through, and anchor your own regexes with ^ and $ if you'd rather not depend on either.

How is a URL split for /path, /selectors and /extension?

Adobe points to Sling's URL decomposition for these four properties. For /content/wknd/us/en.model.tidy.json/extra?page=2:

PropertyValue
/url/content/wknd/us/en.model.tidy.json/extra
/path/content/wknd/us/en
/selectorsmodel.tidy
/extensionjson
/suffix/extra
/querypage=2

Sling finds where the path ends by asking the repository, and Dispatcher has no repository. For a folder with a dot in its name, such as /etc.clientlibs/, neither Adobe's page nor Sling's says where Dispatcher draws the line. The tester splits at the first dot and marks those URLs. Match them with /url, as the archetype's /aem0012 rule does for client libraries.

Which filter mistakes show up in the tester?

  • A rule in default_filters.any on Cloud Service. The file's own header says changes there "will have no impact on your deployment". Your rules go in filters.any.
  • An allow on a whole tree. /url "/content/*" also lets through .infinity.json and .tidy.json, which dump the content tree as JSON. Keep a selectors deny after it.
  • A /query rule on a request without a query string. It compares against an empty value, so "debug=*" doesn't match and the rule is skipped.
  • /glob rules. Adobe calls filtering with globs deprecated, and a rule can't mix /glob with the other properties. /glob "* *.css *" becomes /url "*.css".
  • Consoles left open. Test /crx/de/index.jsp, /system/console and /bin/querybuilder.json: on publish all three should come back denied.

The tester reads the filter only. Caching, rewrites in Apache and the CDN in front of Cloud Service can still change what a visitor gets. Writing your own rules, and serving downloads with the right headers, is covered in the guide to Dispatcher filter rules and Content-Disposition.

More in Tools

  • Oak Index Definition Generator

    Paste an XPath, JCR-SQL2 or QueryBuilder query and get the Lucene index for it, as diff.json for Cloud Service or .content.xml for 6.5.

  • AEM Cron Expression Generator

    Build or check a Quartz expression for a Sling scheduled task, with the next run times and the code to register it.