ServerSocket.SetAllowedTypes
----------------------------

Sets a list of allowed types.

| 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.SetAllowedTypes"; Types ) 

**MBS**( **"ServerSocket.SetAllowedTypes";** /\* Sets a list of allowed types. \*/  
**$Types**) /\* Pass several texts here for the type names.e.g. "SQL" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Types | Pass several texts here for the type names. | "SQL" |

### Result

Returns number of allowed types.

### Description

Sets a list of allowed types.  
Types include: MBSVersion, SQL, Evaluate or Script  
If this command is used, the plugin will only perform the allowed query types.  
We recommend to disable SQL if you don't need it.  
### Examples

Allow two types:

 MBS ( "ServerSocket.SetAllowedTypes"; "SQL¶Evaluate" )  
### See also

- [ServerSocket.GetAllowedScripts](ServerSocketGetAllowedScripts.md)
- [ServerSocket.GetAllowedTypes](ServerSocketGetAllowedTypes.md)
- [ServerSocket.SetAllowedScripts](ServerSocketSetAllowedScripts.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 is free to use.

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

  
[ServerSocket.SetAllowedScripts](ServerSocketSetAllowedScripts.md) - [ServerSocket.Start](ServerSocketStart.md)

[HTML Version](ServerSocketSetAllowedTypes.shtml)