Skip to main content

Preventing Hotlinking

To prevent other sites hotlinking to content (and eating up bandwidth), we can specify a list of allowed referrers in our CDN configuration, meaning that any request not coming from those referrer domains will get a 403 Forbidden error.

On BunnyCDN, go to your Pull Zone -> Security menu:

image.png

Bear in mind that using the wildcard to specify all subdomains does not include the root domain (e.g. *.desertedchateau.com doesn't allow desertedchateau.com without a subdomain).