> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/content-delivery-network/domain-management/access-control/referer-restrictions.md).

# Referer Restrictions

Referer-based hotlink protection refers to access control based on the Referer header.

For example, you can configure a Referer whitelist to allow only specified requests to access your resources or a blacklist to block specified requests. Referer-based hotlink protection identifies and filters user identities and protects your resources from unauthorized access.

<div align="left"><figure><img src="/files/V6WTXOTqoPfpflVMCKj5" alt="" width="375"><figcaption></figcaption></figure></div>

<table><thead><tr><th width="147">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Allow No Referer</td><td>The rule allows the client to not include the UA field in the request header.</td></tr><tr><td>Allow Empty Referer</td><td>The rule allows clients to request UA with empty value in the header</td></tr><tr><td>Allow List &#x26; Block List</td><td><ul><li>Allow list<br>Specifies the redirect URL. If the Referer information in the request does not match the whitelist, the HTTP 403 status code is not returned after the request is blocked. Instead, the HTTP 302 status code and the Location header are returned. This parameter is the value of the Location header that starts with <code>http://</code> or <code>https://</code>, such as <code>http://www.example.com</code>.</li><li>Block list<br>Specifies the redirect URL. If the Referer information in the request matches the blacklist, the HTTP 403 status code is not returned after the request is blocked. Instead, the HTTP 302 status code and the Location header are returned. This parameter is the value of the Location header that starts with <code>http://</code> or <code>https://</code>, such as <code>http://www.example.com</code>.</li></ul></td></tr></tbody></table>
