<!--
{
  "availability" : [
    "MacCatalyst: 19.0.0 -",
    "iOS: 19.0.0 -",
    "iPadOS: 19.0.0 -",
    "macCatalyst: -",
    "macOS: 16.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEURLFilter"
  },
  "title" : "NEURLFilter"
}
-->

# NEURLFilter

A class used to voluntarily validate URLs for apps that don’t use WebKit or the URL session API.

```
class NEURLFilter
```

## Overview

When using networking frameworks other than WebKit or Foundation’s <doc://com.apple.documentation/documentation/Foundation/URLSession>, use the `NEURLFilter` API to evaluate URLs before potentially connecting to a restricted or malicious site.
Call the class method [`verdict(for:)`](/documentation/NetworkExtension/NEURLFilter/verdict(for:)) to check a URL and honor the “allow” or “deny” verdict.
Don’t connect to any URL that receives a “deny” verdict.

## Topics

### Evaluating a URL

[`verdict(for:)`](/documentation/NetworkExtension/NEURLFilter/verdict(for:))

Determines if accessing the specified URL is allowed or denied.

[`+  verdictForURL:completionHandler:`](/documentation/NetworkExtension/NEURLFilter/verdictForURL:completionHandler:)

Determines if accessing the specified URL is allowed or denied.

[`Verdict`](/documentation/NetworkExtension/NEURLFilter/Verdict)

A verdict returned by a URL filter.

## Relationships

### Conforms To

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)