Support » Plugin: Music Player for WooCommerce » Access rules in the .htaccess

  • Resolved albridi

    (@albridi)


    Hi there 🙂 !

    To protect my mp3 files from direct browsing, my hosting provider has set up something that denies your plugin access to the mp3 files, if they are in the protected download folder.

    I talked to them about this and they suggested adding some rules to the .htaccess file that allows your plugin to access the files for demo purposes. They don’t provide these rules, so they suggested contacting you about this as well.

    Could you provide the way to access files by adding rules to .htaccess?

    If not, I always have the option to make special truncated mp3 files for demos and put them in an accessible folder, but this is not the ideal situation.

    I hope you can help with this.

    Kind regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @albridi

    The plugin knows the audio files are local to the website and access them to generate the demos by their paths and not their URLs. If the plugin is not accessing the files, please check the audio file URL because it should defer from the website’s domain.

    Best regards.

    Thread Starter albridi

    (@albridi)

    Hi @codepeople, thanks for your quick response 🙂 !

    I’m not sure if this would be the case. Let me explain a little better. There are two folders. Folder one is protected by the hosting service settings. Folder two does not:

    1) https://www.thesite.com/wp-content/uploads/protected-folder/the-same-file.mp3

    2) https://www.thesite.com/wp-content/uploads/non-protected-folder/the-same-file.mp3

    If you set option 1 as the product URL file, the player does not play anything. That’s why I think the plugin doesn’t have permissions to read or write to this folder.

    Instead, if you set option 2, the unprotected folder, the plugin runs without issue.

    That’s why the hosting provider suggested that I give the plugin access by setting up some .htaccess rules, but I have no idea how to do something like that.

    Kind regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @albridi

    Please, be sure you have enabled the “Protect the file” option in the player’s settings and entered an integer number greater than 50 in the attribute “Percent of audio used …”.

    When the protection is enabled, the plugin generates the demos by accessing the audio files through their paths and not their URLs.

    Best regards.

    Thread Starter albridi

    (@albridi)

    Hi @codepeople 🙂 !

    Yes, I checked “Protect the file” and set it to 60% to test… no way it doesn’t work. If I want a demo, I have to use “Select my own demo” with the files that are outside the protected folder. That works perfectly.

    I see there is a .htaccess inside the protected folder with a single parameter: “deny from all”.

    I think that’s why my hosting provider asks me to set some rules to allow your plugin here. Don’t you think?

    Kind regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @albridi

    As the demos are generated by the commercial version of the plugin it would be better to manage this issue through the plugin website:

    https://wcmp.dwbooster.com/contact-us

    Best regards.

    Thread Starter albridi

    (@albridi)

    Ok @codepeople, I will try to contact them later.

    Thanks a lot.

    Regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @albridi

    I will be the one to answer you from the plugin website.

    Best regards.

    Thread Starter albridi

    (@albridi)

    Great, see you there soon 🙂 !

    Regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.