<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserKit",
  "identifier" : "/documentation/BrowserKit/BEBrowserContentFilter/evaluateURL(_:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEBrowserContentFilter(im)evaluateURL:completionHandler:"
  },
  "title" : "evaluateURL(_:completionHandler:)"
}
-->

# evaluateURL(_:completionHandler:)

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

```
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\abstract Evaluates whether a URL should be blocked.

---

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)