---
title: "evaluateURL(_:completionHandler:)"
framework: BrowserKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+]
path: "browserkit/bebrowsercontentfilter/evaluateurl(_:completionhandler:)"
---

# evaluateURL(_:completionHandler:)

## Declaration

```swift
func evaluateURL(_ url: URL, completionHandler: @escaping @Sendable (Bool) -> Void)
```

```swift
func evaluateURL(_ url: URL) async -> Bool
```

## Parameters

- `url`: The URL to be evaluated.
- `completionHandler`: The completion block to be invoked with result when evaluation is complete. Result is YES if the url should be blocked, and NO if it isn’t.

## Discussion

Discussion Evaluates whether a URL should be blocked.
