secureMode

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the secureMode to true
Summary

Disables the application's ability to access files and run programs.

Introduced1.0
Changes

In version 9.5 the loading of extensions was added to the secureMode restrictions.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the secureMode to true
Values
NameTypeDescription
Value

The secureMode is true or false. By default, the secureMode property is set to false.

RelatedKeyword: file
Property: securityPermissions, securityCategories
Command: write to file, open file, put, launch, open process, read from file, get, load extension
Function: shell, files, deleteRegistry, setRegistry, queryRegistry
Control Structure: function
Glossary: property, stack file, Windows, web server, keyword, registry, function, command, application
Description

Use the secureMode property to lock down file access in situations where security is required: for example, for a kiosk application or web server.

If the secureMode property is set to true, the application cannot use the get, put, open file, read from file, or write to file commands to gain access to local files. The application cannot run programs with the shell function, the open process command, or the launch command. On Windowssystems, it cannot use the deleteRegistry, queryRegistry, or setRegistry functions to access the Windows system registry.

The application cannot access remote files with the URL keyword. The application can open (but not save) stack files.

If the application is started from a Unix or Windows command line, this property can be set to true on startup by using the -f option.

The application also can not use the load extension command to load an extension from a file or data.

Important: Once the secureMode property is set to true, it cannot be set back to false. To change it back to true, you must quit and restart the application.

Tagsfile system