rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Awesoft on June 20, 2011, 02:36:02 AM

Title: Filtering files to guests...
Post by: Awesoft on June 20, 2011, 02:36:02 AM
I'd like to know how to filter some files to the guests... and make them only visible for my account list.
For example, hide the files named "private.exe" to the guests... or hide the files with extension ".exe".. or hide the folders called "private".

Thank you in advance.
Title: Re: Filtering files to guests...
Post by: Mars on June 20, 2011, 08:13:49 AM
to do that , it's not necessary to define a filter for files

You will just have simply to add the following lines to hide exe files for guests:.

[file.exe]
{.if|%user%|{.section|file.}.}

 Or in the template for the whole directory of VFS.
 Or in the vfs as diff template for the concerned directory and his sub-folders.
 Or in a hfs.diff.tpl file on the hard disk in the concerned folder.

If you want to push farther the reflection and unhide exe file only for some users:
Create a group of users named "can see exe", associate this group to the persons authorized to see exe files, and put these lines in the template on the place of others than I supplied higher


[file.exe]
{.if|{.member of|can see exe.}|{.section|file.}.}

 ;)
Title: Re: Filtering files to guests...
Post by: rejetto on June 20, 2011, 02:22:04 PM
did you try the "list protected items only for allowed users" ?