If your content server allows for HTTP header authentication, you can apply custom HTTP headers to your self-hosted, registered content. These headers can be set for individual media items within the asset options.

When sent with requests from the player to your content server, you can **prevent unauthorized downloads of your content** and **validate clients**.

<br /> <hr />

## Add custom headers

The custom headers are specified as a Dictionary of the type `[String:String]`. The Dictionary is set as the value of `AVURLAssetHTTPHeaderFieldsKey` within `assetOptions`.

<br />

The following recipe demonstrates how to add custom headers to the player item.

iOS v4: Add custom HTTP headers
Open Recipe

<br />

<!-- Removes the automatic page-to-page navigation at the bottom of the page -->

<style> .rm-Pagination { display: none; } </style>