Plugin.LockFunction
-------------------

Locks a function with a password.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Plugin](component_Plugin.md) | [5.4](newinversion54.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Plugin.LockFunction"; Name; Password ) 

**MBS**( **"Plugin.LockFunction";** /\* Locks a function with a password. \*/  
**$Name**; /\* A function name like [RemoteControl.ClickMouse](RemoteControlClickMouse.md).e.g. "RemoteControl.ClickMouse" \*/   
**$Password**) /\* The password to use.e.g. "secure" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | A function name like [RemoteControl.ClickMouse](RemoteControlClickMouse.md). | "RemoteControl.ClickMouse" |
| Password | The password to use. | "secure" |

### Result

Returns OK or error.

### Description

Locks a function with a password.  
The function can no longer be called until unlocked.  
### Examples

Locks version function:

 MBS ("Plugin.LockFunction"; "Version"; "test")  
### See also

- [Plugin.LimitFunction](PluginLimitFunction.md)
- [Plugin.LockedFunctions](PluginLockedFunctions.md)
- [Plugin.SetFunctions](PluginSetFunctions.md)
- [Plugin.UnlockFunction](PluginUnlockFunction.md)
- [Plugin.UsedFunctions](PluginUsedFunctions.md)
- [RemoteControl.ClickMouse](RemoteControlClickMouse.md)
- [Version](Version.md)

### Blog Entries

- [Watching for schema changes in your FileMaker Server](https://www.mbsplugins.de/archive/2025-11-19/Watching_for_schema_changes_in/monkeybreadsoftware_blog_filemaker)
- [Shared FileMaker Server Hosting and Plugin Security](https://www.mbsplugins.de/archive/2015-10-23/Shared_FileMaker_Server_Hostin/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 20th October 2015 , last changed 21st October 2017

  
[Plugin.LoadIconvLibrary](PluginLoadIconvLibrary.md) - [Plugin.LockedFunctions](PluginLockedFunctions.md)

[HTML Version](PluginLockFunction.shtml)