Support » Plugin: Download Monitor » Prevent hotlinking is not working

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello Mousa,

    Can you please the download link so we could test?

    Hi Harish,

    I just tested it in a private window, it work now, maybe I was logged in !

    Thanks a lot for this plugin 🙂

    Hi,

    Should this plugin prevent hotlinking when the download is not set to members only ?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    The hotlinking checks if the user has a cookie saved on their browser or if the referrer URL was your own domain. So it would work even if you do not set members only.

    Hi,

    That mean it’s still not working. check this link :
    http://www.sketchuparchive.com/download/4528/

    Could you send me your email so I can send to you an admin access ?
    I will activate My coming soon page again in the next hour.

    Regards,

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello Mousa,

    I just discussed this and realized preventing hotlink will not block empty referrers by default.

    When you directly add the URL in your browser, the referrer is empty so we allow the download. A good test would be to link to the file from ​a different​ website.

    Lastly, to block empty referrers, you can add below code to the functions.php file in your active theme.

    add_filter( 'dlm_hotlink_block_empty_referer', '__return_true' );.

    Hi Harish.

    Thanks for Your advice, but when I added the code above on functions.php, my website crashed, any thoughts?

    Regards,

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hi,

    The code needs to be added the end of the functions.php file. Can you please email us the file at “support @download-monitor.com” and I will then edit and send you back.

    Hi,

    I sent to you the functions.php for my child theme on your email, Thanks

    Hi,

    Thanks, It is now works great, sorry I didn’t notice the dot at the end of the code.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Prevent hotlinking is not working’ is closed to new replies.