I have my data (including pdf and images) stored on the /data folder in the root folder. I access these files through one of the actions (i.e. /index/view/path/to/file/in/data/folder).

Are these files searchable on Google? I want to now use ACL to limit access to /index/view, and so hopefully only allow people with certain permissions to view these files.

有帮助吗?

解决方案

Bot is visiting links that finds on you site. If nothing is heads to these files, it should not be indexed by Google. But for sure you should make some check if user which requests file have permissions for it.

You can configure ACL that only authenticated user can access index action from your controller. But if some files should be public, then check must take place in Controller.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top