简体   繁体   English

关闭Ckfiner对公众的访问

[英]Turn off Ckfiner access to public

On asp platform using CkFinder, How do I turn off public access to /ckfinder/ckfinder.html 在使用CkFinder的asp平台上,如何关闭对/ckfinder/ckfinder.html的公共访问

I have an area that requires login to access, yet when not logged in we can access this page 我有一个需要登录才能访问的区域,但是如果未登录,我们可以访问此页面

Thanks 谢谢

In the CkFinder configuration file, you can have it hide files, or folders, or files and folders, as explained here: 在CkFinder配置文件中,您可以使其隐藏文件或文件夹,或文件和文件夹,如下所述:

http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/Hiding_Folders_and_Files http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/Hiding_Folders_and_Files

So, essentially you want to do: 因此,基本上您想做:

<hideFiles>
  <file>ckfinder.html</file>
</hideFiles>

EDIT 编辑

You can also use the ACL to limit what roles can view what folders, as explained here: 您还可以使用ACL来限制哪些角色可以查看哪些文件夹,如下所述:

http://docs.cksource.com/CKFinder_2.x/Developers_Guide/PHP/Configuration/Access_Control http://docs.cksource.com/CKFinder_2.x/Developers_Guide/PHP/Configuration/Access_Control

without testing it myself, restricting anonymous users from the folder will: 无需自己进行测试,限制来自该文件夹的匿名用户将:

$config['AccessControl'][] = Array(
'role' => '*',
'resourceType' => '*',
'folder' => '/CkFinder', 

'folderView' => false,
'folderCreate' => false,
'folderRename' => false,
'folderDelete' => false,

'fileView' => false,
'fileUpload' => false,
'fileRename' => false,
'fileDelete' => false);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM