Disables the application ability to access files and run programs.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the secureMode to true
# Examples
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, it cannot use the deleteRegistry, queryRegistry, or setRegistry functions to access the 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.
# Tags
# See
- **keyword:** 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