Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Blocking extension in the suffix

Avatar

Level 2

Hi,

 

We have a requirement wherein we need to restrict/block the .json extension under suffix.

For e.g, https://<domain>/content/dam/somepath.form.html/en-us.json

We have tried adding the following dispatcher rule,

/0281 { /type "deny" /path "/content/dam/*" /selectors '(form|selector1)' /extension '(.*infinity.*|.*children.*|.*tidy.*|.*json.*)'}

But when deploying this rule, the cloud deployment pipleline fails. Any idea to fix this issue.

 

Thanks,

Pawan.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @pawan_g_007 ,

 

Try the below rule

 

/0281 { /type "deny" /path "/content/dam/*/somepath" /selectors '(form|selector1)' /extension '(infinity|children|tidy|json)'}

 

In the above rule I have restricted the path more.

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Hi @pawan_g_007 ,

 

Try the below rule

 

/0281 { /type "deny" /path "/content/dam/*/somepath" /selectors '(form|selector1)' /extension '(infinity|children|tidy|json)'}

 

In the above rule I have restricted the path more.