HotLink protection not working for WEBP images

Hi all.

Based on the Documentation here it looks like Cloudflare does not
HotLink protect WEBP Images.

What does Hotlink Protection do?

Hotlink Protection prevents your images from being used by other sites. This can reduce the bandwidth consumed by your origin server.

When Cloudflare receives an image request for your site, we check to ensure the request did not originate from visitors on another site. Visitors to your domain will still be able to download and view images.

Hotlink protection has no impact on crawling, but it will prevent the images from being displayed on sites such as Google images, Pinterest, etc.

Supported file extensions: gif, ico, jpg, jpeg, and png.

This is really bad as nowadays most websites use the WEBP image format
for performance increases and its usage is skyrocketing.

See here Statistic Data:
https://w3techs.com/technologies/details/im-webp

im-webp1

Can Cloudflare please support WEBP images for HotLink Protection ?
Thanks in advance for the support!

1 Like

Next-gen image support

If you are with siteground hosting they support this but I rather Cloudflare fix this issue.

or you could try

.htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteRule .*.(jpg|jpeg|gif|png|bmp|webp)$ - [F,NC]

Replace **domain.com** with your actual domain name.
1 Like

Hi PC_Repair.

Thanks a lot for your fast Reply and the Link to the Next-gen Image formats.

Yes i fully agree that hotlink protection for next generation image formats need to be urgently adressed and fixed by cloudflare.
:+1:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.