Understanding Cloudflare Hotlink Protection

Learn how to enable Hotlink Protection via the Cloudflare ScrapeShield app to prevent other websites from linking to your image resources or abusing your bandwidth.


Overview

With Hotlink Protection enabled, other websites can still download and view images from your website but cannot link directly to your image resources.  Supported file extensions are gificojpgjpeg, and png:

https://example.com/pic1.jpg

To allow hotlinking of certain images, use a special folder named hotlink-ok anywhere in your website's folder hierarchy.  For instance, to allow example.blogspot.com to use logo.png from www.example.com, put logo.png in a new folder called hotlink-ok:

https://www.example.com/hotlink-ok/logo.jpg

https://www.example.com/images/hotlink-ok/logo.jpg


Related resources

Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk