---
title: levels
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neurlfiltermanager/parsingconfiguration/domainoptions/levels
---

# levels

The number of domain levels to preserve when parsing.

## Declaration

```swift
var levels: UInt
```

## Discussion

Discussion A value of 2 for the domain www.sub.example.com keeps the example.com. Use a value of 0 to keep all domain levels.

## See Also

### Working with domain options

- [excluded](networkextension/neurlfiltermanager/parsingconfiguration/domainoptions/excluded.md)
- [stripWWW](networkextension/neurlfiltermanager/parsingconfiguration/domainoptions/stripwww.md)
- [enumerateHierarchy](networkextension/neurlfiltermanager/parsingconfiguration/domainoptions/enumeratehierarchy.md)
