ServerSocket.SetAllowedScripts
------------------------------

Sets a list of allowed script names.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ServerSocket](component_ServerSocket.md) | [3.4](newinversion34.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md). Use [WebHook](component_WebHook.md) functions instead.

MBS( "ServerSocket.SetAllowedScripts"; Scripts ) 

**MBS**( **"ServerSocket.SetAllowedScripts";** /\* Sets a list of allowed script names. \*/  
**$Scripts**) /\* Pass several texts here for the script names.e.g. "ServerSocket\_PrintReceipt" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Scripts | Pass several texts here for the script names. | "ServerSocket\_PrintReceipt" |

### Result

Returns number of scripts.

### Description

Sets a list of allowed script names.  
If this command is used, the plugin will only launch scripts with the names in this list.  
We recommend to prefix the script names for use with ServerSockets, so you don't risk of having two scripts with same name.  
### Examples

Allow two scripts:

 MBS ( "ServerSocket.SetAllowedScripts"; "ServerSocket\_PrintReceipt¶ServerSocket\_Notify" )  
### See also

- [ServerSocket.GetAllowedScripts](ServerSocketGetAllowedScripts.md)
- [ServerSocket.GetAllowedTypes](ServerSocketGetAllowedTypes.md)
- [ServerSocket.SetAllowedTypes](ServerSocketSetAllowedTypes.md)

### Blog Entries

- [MBS Filemaker Plugin, version 3.4pr2](https://www.mbsplugins.de/archive/2013-08-28/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 17th October 2021

  
[ServerSocket.SendQuery](ServerSocketSendQuery.md) - [ServerSocket.SetAllowedTypes](ServerSocketSetAllowedTypes.md)

[HTML Version](ServerSocketSetAllowedScripts.shtml)