• Resolved jonahcoyote

    (@jonahcoyote)


    Hi there,

    I’m on Hostinger (w/LiteSpeed cache) and seeing 403 errors for all my downloads. Here is an example: https://marvelmfg.com/product/33lf/ (click any of the Manuals links which are PDF downloads).

    I tried the filter in my functions.pho: add_filter( ‘dlm_x_sendfile’, ‘__return_false’, 99 );

    Checked/cleaned .htaccess, cleared permalinks, fixed file permissions, cleared caches, etc. and nothing is working.

    We’re running the latest version of WP and 4.9.14 of your plugin.

    Any ideas on what else to try? Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hello @jonahcoyote ,

    Seems you have redirects to your files, and those files are located in the dlm_uploads directory.

    If on Apache, that directory is protected by the .htaccess that resides inside it, so that those files are protected agains direct access. If you do not want them to be protected and want the download link to redirect the visitor to the file, please either delete the .htaccess or clear its contents.

    If you are on Nginx, the protection is not made by the .htaccess file but by your host, who entered the “deny: all” rule in the server configuration for the dlm_uploads directory, and you need to talk to them to remove the rule.

    In your case, please see if there is an .htaccess located in the dlm_uploads and remove it/empty it.

    But be aware that, in either case, removing the protection from that directory will mean that visitors can directly go to those files without passing through Download Monitor.

    Warmly,
    Razvan

    • This reply was modified 5 months, 1 week ago by Razvan Aldea. Reason: completion
    Thread Starter jonahcoyote

    (@jonahcoyote)

    Bingo, that worked deleting the .htaccess in the dlm_uploads directory! So easy, thank you!

    Plugin Author Razvan Aldea

    (@raldea89)

    My pleasure ??

    Have a wonderful day!
    Razvan

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