Restricting user to remote directory

Top  Previous  Next

You may restrict a user to a remote directory by passing the restrictRemoteDir applet parameter to the applet with a value of true. This applet parameter works in conjunction with the remoteDir applet parameter. When used together the user will be restricted from accessing directories above the directory path provided in the remoteDir applet parameter. Note: When using the restrictRemoteDir parameter the remoteDir value MUST begin with a "/".

 

Example

 

<param name="remoteDir" value="/home/user/jsmith/uploads">

<param name="restrictRemoteDir" value="true">

 

The above example demonstrates this setting using HTML applet parameters.

 

Example

 

remoteDir = /home/user/jsmith/uploads

restrictRemoteDir = true

 

The above example demonstrates this setting loading applet parameters from the params.txt file.

 

See also

 

Specifying applet parameters