Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Apache dispatcher rules not rejecting /.json;%0aa.css

Avatar

Level 2

I am unable to block/reject /.json;%0aa.css

The error I get in dispatcher error.log is

The given path is misformatted or contained invalid characters: Cannot map GET /.json;%0aa.css

Although I am able to block /.json as I dont get any error for this.

I used ;%0aa.css with other URLs but they went ahead without any issue.

So my question is how can I block/reject /.json;%0aa.css as it is printing some output on browser.

Themen

Anhand von Themen werden Community-Inhalte kategorisiert und Sie können so relevanten Inhalt besser finden.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 2

@mirza_akram 

is the filter file using /glob matchers for the extensions like this?

/0041 { /type "allow" /glob "* *.css *"   }  # enable css

 

if so, try this:

/0041 { /type "allow" /extension "css"   }  # enable css

 

if that fixes the issue, the glob matchers for all the extensions can be replaced with:
/0010 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html)' /path "/content/*" } ## disable this rule to allow mapped content only

 

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Community Advisor

@mirza_akram 

Could you try adding the below rule in filter section of your web server configuration :

{ /type "deny" /glob "GET *.json*" }

 

Hopefully, this should work.

 

Regards,

Arpit

Avatar

Level 2

Hi Arpit,

 

Thanks for the reply. I tried this but same output.

 

Thanks,

Mirza

Avatar

Korrekte Antwort von
Level 2

@mirza_akram 

is the filter file using /glob matchers for the extensions like this?

/0041 { /type "allow" /glob "* *.css *"   }  # enable css

 

if so, try this:

/0041 { /type "allow" /extension "css"   }  # enable css

 

if that fixes the issue, the glob matchers for all the extensions can be replaced with:
/0010 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html)' /path "/content/*" } ## disable this rule to allow mapped content only