---
title: "verdict(for:)"
framework: networkextension
role: symbol
role_heading: Type Method
path: "networkextension/neurlfilter/verdict(for:)"
---

# verdict(for:)

Determines if accessing the specified URL is allowed or denied.

## Declaration

```swift
class func verdict(for url: URL) async -> NEURLFilter.Verdict
```

## Parameters

- `url`: The URL to be validated.

## Return Value

Return Value A NEURLFilter.Verdict that indicates whether the filter allows or denies connecting to the URL. If the verdict is deny, the caller should fail the URL request.

## Discussion

Discussion Callers should honor the return verdict to prevent communication with restricted or malicious sites.

## See Also

### Evaluating a URL

- [NEURLFilter.Verdict](networkextension/neurlfilter/verdict.md)
