Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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 3

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.

 

1 Reply

Avatar

Correct answer by
Level 3

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.