<!--
{
  "availability" : [
    "macOS: 10.15.0 -",
    "Xcode: 11.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/filtering-network-traffic",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Filtering Network Traffic"
}
-->

# Filtering Network Traffic

Use the Network Extension framework to allow or deny network connections.

## Overview

> Note: This sample code project is associated with WWDC 2019 session [714: Network Extensions for Modern macOS](https://developer.apple.com/videos/play/wwdc19/714/)

### Configure the Sample Code Project

This sample code project only runs on macOS.

---

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)