Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Dispatcher rule to block infinity json for a unique url

Avatar

Level 1

Hi Team,

 

We are using AEM as a managed Service with 6.5 and SP 15. infinity.json is blocked in the dispatcher if we access a url which ends with infinity.json. However, the infinity json is accessible via the url http://www.test.com/content/.ext.infinity.json;%0AXLA.ico/a.html with some unicode characers followed by a html path as shown above.

 

Can you please suggest a dispatcher rule in AMS to block the above url in dispatcher filters section?

 

Thanks In Advance.

 

Regards,

S

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Try  deny on  */*.infinity.json*/*

Himanshu Jain

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Try  deny on  */*.infinity.json*/*

Himanshu Jain

Avatar

Employee Advisor

Hi,

 

To block the specific URL pattern "http://www.test.com/content/.ext.infinity.json;%0AXLA.ico/a.html" in the dispatcher filters section of Adobe Managed Services dispatcher configuration, you can use the following rule:

 

/0001 { /glob "*\;*.html" /type "deny" }

 

This rule will match any URL ending with ".html" and deny access to it, effectively blocking the URL mentioned in your question. Place this rule in your dispatcher configuration file within the appropriate section for filter rules.

Note: Make sure to adapt the rule according to your specific dispatcher configuration and URL patterns.

 

Avatar

Community Advisor

To block the URL you can use as @Himanshu_Jain suggested. The exact filter rule is as follows

 

#This will block all infinity.json and anything after it
/0030 { /type "deny" /url "*.infinity.json*" }
/0031 { /type "deny" /url "*.infinity.json" }