<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterPrefilter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension20NEURLFilterPrefilterV"
  },
  "title" : "NEURLFilterPrefilter"
}
-->

# NEURLFilterPrefilter

A structure containing a prefilter returned by a filter control provider.

```
struct NEURLFilterPrefilter
```

## Overview

You return this type from the [`fetchPrefilter(existingPrefilterTag:)`](/documentation/NetworkExtension/NEURLFilterControlProvider/fetchPrefilter(existingPrefilterTag:)) method of [`NEURLFilterControlProvider`](/documentation/NetworkExtension/NEURLFilterControlProvider).
The returned `NEURLFilterPrefilter` must contain a Bloom filter built with the 32-bit FNV-1a and 32-bit MurmurHash3 hash functions, with double hashing.
Depending on the size of the Bloom filter data, it can be passed as data or the path of a file containing the data.

## Topics

### Creating a prefilter

[`init(data: NEURLFilterPrefilter.PrefilterData, tag: String, bitCount: Int, hashCount: Int, murmurSeed: UInt32)`](/documentation/NetworkExtension/NEURLFilterPrefilter/init(data:tag:bitCount:hashCount:murmurSeed:))

Initializes a new prefilter with the given parameters.

### Working with prefilter properties

[`let data: NEURLFilterPrefilter.PrefilterData`](/documentation/NetworkExtension/NEURLFilterPrefilter/data)

The Bloom filter data.

[`enum PrefilterData`](/documentation/NetworkExtension/NEURLFilterPrefilter/PrefilterData)

An enumeration that represents Bloom filter data, as used by a prefilter.

[`let tag: String`](/documentation/NetworkExtension/NEURLFilterPrefilter/tag)

The tag of the Bloom filter data, such as the SHA-256 hash of the Bloom filter data.

[`let bitCount: Int`](/documentation/NetworkExtension/NEURLFilterPrefilter/bitCount)

The number of bits in the Bloom filter.

[`let hashCount: Int`](/documentation/NetworkExtension/NEURLFilterPrefilter/hashCount)

The number of hashes for the Bloom filter.

[`let murmurSeed: UInt32`](/documentation/NetworkExtension/NEURLFilterPrefilter/murmurSeed)

The seed used for the hashing function.



---

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)