Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Restrict read write access on dispatcher level

Avatar

Former Community Member

Hi,

Assume my docroot cache directory is  <docroot>/cache/ and inside /cache I have folder /temp. 

Do we have any option through which I can provide read or write access on temp folder, in other words if i have two .html files inside <docroot>/cache/temp say a.html and b.html. Now if I need that through dispatcher if someone tries to access a.html or b.html the user should be given access denied or 404.

Is there any configuration that can be used in dispatcher.any?

Please provide your suggestions or any approach which you feel can fulfill this requirement.

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

If that's a static rule, you can use the webserver features to disallow access to that directory (the question remains, why you actually have data there at all). If you want to handle that more dynamically, you could use permission sensitive caching (http://dev.day.com/docs/en/cq/current/deploying/dispatcher/permissions_cache.html).

Jörg

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

If that's a static rule, you can use the webserver features to disallow access to that directory (the question remains, why you actually have data there at all). If you want to handle that more dynamically, you could use permission sensitive caching (http://dev.day.com/docs/en/cq/current/deploying/dispatcher/permissions_cache.html).

Jörg