---
title: "prohibitedInterfaceTypes(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwparametersprovider/prohibitedinterfacetypes(_:)"
---

# prohibitedInterfaceTypes(_:)

Prohibit certain interface types from being used to connect, listen, and browse.

## Declaration

```swift
func prohibitedInterfaceTypes(_ types: [NWInterface.InterfaceType]) -> Self
```

## Parameters

- `types`: An array of interface types to prohibit.
