block .infinity.json requests for a specific URL | Community
Skip to main content
July 23, 2025
Solved

block .infinity.json requests for a specific URL

  • July 23, 2025
  • 2 replies
  • 325 views

Hi all,
I want to block .infinity.json access for a particular page for example: /content/site/en/sensitive-page.infinity.json at the Dispatcher level while still allowing it for other pages. How can I set a specific Dispatcher filter rule to achieve this?

Thanks in advance!

Best answer by SantoshSai

Hi @anujara,

Try this:

/0001 { /type "deny" /url "/content/site/en/sensitive-page.infinity.json" }

Make sure this rule is placed before the general rule that allows .json requests.

 

2 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
July 23, 2025

Hi @anujara,

Try this:

/0001 { /type "deny" /url "/content/site/en/sensitive-page.infinity.json" }

Make sure this rule is placed before the general rule that allows .json requests.

 

Santosh Sai
July 23, 2025

Hi @anujara ,

 

You can try this:-

 

/0001 { /type "deny" /url "/content/site/en/sensitive-page.infinity.json" } /0002 { /type "allow" /url ".*\\.infinity\\.json" }

 

Let me know if it works.