Hello, we are working on our type of download (woocommerce settings for downloadable files).
The instruction says: Using NGINX Server?
If you using NGINX server for your site along with X-Accel-Redirect/X-Sendfile or Force Downloads download method, it is necessary that you add this configuration for better security:
# Protect WooCommerce upload folder from being accessed directly.
# You may want to change this config if you are using “Redirect Only” method for downloadable products.
# Place this config towards the end of “server” block in nGinx configuration.
location ~* /wp-content/uploads/woocommerce_uploads/ {
if ( $upstream_http_x_accel_redirect = “” ) {
return 403;
}
internal;
}
Can You add that please?