By default, Presto Player will protect media files inside of the wp-content/uploads/presto-player-private/ folder with a .htaccess (and also allow bunny.net to access), but this will only work if your site is running on Apache. If your site is running on NGINX, these videos will not be protected and will be able to be viewed by anyone.

To properly protect the videos on NGINX, we recommend using Cloudflare since this makes it free and has loads of other benefits to your website.

Blocking With Cloudflare

1. From your Cloudflare account page, navigate to the “Firewall” tab, then click “Firewall Rules”:

This image has an empty alt attribute; its file name is image-1-1024x154.png

2. Click “Create a Firewall rule”:

This image has an empty alt attribute; its file name is image-2-1024x202.png

3. Give the rule a name, and click “Edit Expression”:

This image has an empty alt attribute; its file name is image-3-1024x673.png

4. Paste this into the expression box and click “Deploy”

This give access to the directory from Bunny's CDN network IP addresses.

(http.request.uri contains "presto-player-private")

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *