Skip to main content

secureMode

Type​

property

Summary​

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

Syntax​

set the secureMode to true

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 Windows|Windows systems, 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.

Examples​

set the secureMode to true

Value​

NameTypeDescription

value

bool

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

command: write to file, open file, put, launch, open process, read from file, get, load extension

control structure: function

function: shell, files, deleteRegistry, setRegistry, queryRegistry

glossary: property, stack file, Windows, web server, keyword, registry, function, command, application

keyword: file

property: securityPermissions, securityCategories

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?