<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEFilterControlProvider/handleRemediation(for:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEFilterControlProvider(im)handleRemediationForFlow:completionHandler:"
  },
  "title" : "handleRemediation(for:completionHandler:)"
}
-->

# handleRemediation(for:completionHandler:)

Handle a request for remediation from the user.

```
func handleRemediation(for flow: NEFilterFlow, completionHandler: @escaping @Sendable (NEFilterControlVerdict) -> Void)
```

## Parameters

`flow`

An [`NEFilterFlow`](/documentation/NetworkExtension/NEFilterFlow) object containing details about the flow that requires remediation.

`completionHandler`

A block that must be called when the Filter Control Provider has made a decision about the flow. The [`NEFilterControlVerdict`](/documentation/NetworkExtension/NEFilterControlVerdict) object passed to this block contains the decision that the Filter Control Provider made about the flow.

## Discussion

This method is called by the system when the Filter Data Provider indicates that the filtering verdict for the given flow is `NEFilterRemediateVerdictNeedRules`. Subclass implementations must override this method and implement whatever steps are necessary to remediate the given flow.

---

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)