For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hotlink Protection

Prevent unauthorized use of your media files by blocking external websites from embedding or linking directly to your CDN-hosted assets.

Control direct access to CDN-delivered content by validating the Referer header of incoming requests.

Hotlink Protection helps prevent external websites from linking directly to your content. Depending on the configured mode, requests are allowed or denied based on the domain associated with the Referer header.

Hotlink Protection is configured per CDN Resource in the Medianova Control Panel.

1

Open Security

Open your CDN Resource and select Security.

2

Turn on Hotlink Protection.

3

Select the Mode

Under Mode, select how the configured domains are evaluated:

  • Whitelist — Allow requests associated with the configured domains.

  • Blacklist — Deny requests associated with the configured domains.

4

Configure Referer Handling

Enable Also allow requests with no Referer header if requests without a Referer header should be allowed.

If this option is disabled, requests without a Referer header are subject to the Hotlink Protection policy.

5

Add Domains

Under Domain, enter the domain to which the selected mode applies, then select Add.

The field accepts entries in the following formats:

  • Domain, such as domain.com

  • Wildcard domain, such as *.domain.com

  • IP address, such as 192.168.1.1

Add additional entries as required.

6

Save the Configuration

Select Save in the pending changes bar.

Review the pending changes and confirm the configuration.

Hotlink Protection evaluates the Referer header associated with incoming requests against the configured domain list.

The resulting behavior depends on the selected Mode:

Mode
Behavior

Whitelist

Requests associated with configured domains are allowed.

Blacklist

Requests associated with configured domains are denied.

Requests without a Referer header can be explicitly allowed using Also allow requests with no Referer header.

Important Notes

  • Hotlink Protection relies on the Referer header supplied with the request.

  • Use Whitelist when content should be accessible only from specified domains.

  • Use Blacklist when specific domains should be prevented from directly accessing the content.

  • Configure the handling of requests without a Referer header according to your access requirements.

  • Multiple domain entries can be added when the policy must apply to more than one domain.

Last updated

Was this helpful?