Dispatcher rule to block infinity json for a unique url | Community
Skip to main content
June 12, 2023
Solved

Dispatcher rule to block infinity json for a unique url

  • June 12, 2023
  • 2 replies
  • 1638 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Himanshu_Jain

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

2 replies

Himanshu_Jain
Community Advisor
Himanshu_JainCommunity AdvisorAccepted solution
Community Advisor
June 12, 2023

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

Himanshu Jain
ManviSharma
Adobe Employee
Adobe Employee
June 12, 2023

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.

 

kaikubad
Community Advisor
Community Advisor
June 12, 2023

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" }