<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension18NEURLFilterManagerC20ParsingConfigurationV13DomainOptionsV"
  },
  "title" : "NEURLFilterManager.ParsingConfiguration.DomainOptions"
}
-->

# NEURLFilterManager.ParsingConfiguration.DomainOptions

A type that represents options for parsing the URL domain component.

```
struct DomainOptions
```

## Topics

### Creating a domain options instance

[`init(excluded: Bool, stripWWW: Bool, levels: UInt, enumerateHierarchy: Bool)`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/init(excluded:stripWWW:levels:enumerateHierarchy:))

Creates a new domain options configuration with default values.

### Working with domain options

[`var excluded: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/excluded)

A Boolean value that indicates whether to exclude the domain component from URL parsing.

[`var stripWWW: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/stripWWW)

A Boolean value that indicates whether to strip the `www` subdomain when parsing.

[`var levels: UInt`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/levels)

The number of domain levels to preserve when parsing.

[`var enumerateHierarchy: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/enumerateHierarchy)

A Boolean value that indicates whether the parser walks the domain hierarchy for matching.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)