Hiding Specific Folders and Files

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

CKFinder is a file browser that makes it possible to upload the files to your server and browse the folders for uploaded files. Sometimes, however, you may wish to hide specific folder or files from being shown to the users. The following CKFinder configuration options will help you achieve this.

Hiding Folders

If you want to tell CKFinder to hide some folders from the users browsing files on the server, use the <hideFolders> configuration setting. Note that by default CKFinder is set to hide the special Subversion (SVN) and CVS folders from the users.

<hideFolders>
	<folder>.svn</folder>
	<folder>CVS</folder>
</hideFolders>

Hiding Files

If, on the other hand, you would like to hide a class of files from your users, for example in order to conceal some system files from your users, use the hideFiles option. Note that by default CKFinder is set to hide the special server configuration files from the users.

<hideFiles>
	<file>.*</file>
</hideFiles>

Please note that you can use the following wildcards in your hideFiles definitions:

  • ? (question mark) – stands for exactly one character.
  • * (asterisk) – stands for multiple characters.

The default setting (.*) means that all files that begin with a dot character will be hidden.

This page was last edited on 27 April 2011, at 08:31.