---
title: blockedByFilter
framework: managedsettings
role: symbol
role_heading: Instance Property
path: managedsettings/webcontentsettings/blockedbyfilter-swift.property
---

# blockedByFilter

The current policy for filtering websites.

## Declaration

```swift
var blockedByFilter: WebContentSettings.FilterPolicy? { get set }
```

## Discussion

Discussion Setting any filter policy besides .none will disable Safari private browsing. The value is nil unless you specify a policy. Your app can block up to 50 web domains and specify up to 50 web domains exceptions at once.

## See Also

### Filtering web domains

- [blockedByFilter](managedsettings/webcontentsettings/blockedbyfilter-swift.type.property.md)
- [WebContentSettings.FilterPolicy](managedsettings/webcontentsettings/filterpolicy.md)
