• Resolved stevensp

    (@stevensp)


    Good day.
    I have been using this plugin for my site and it is working very well! So thank you!

    It hides the actual location of the files very well. However I realise one can easily obtain the php download link and place the link on other sites.

    Will it possible to prevent such hot linking of the php download link?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, currently that option is not available in the plugin. There is a new setting that allows only logged in users to download a file. That option might help you further protect and control the download file URL path.

    Kind regards

    Thread Starter stevensp

    (@stevensp)

    will it be possible to set it throught .htaccess etc?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, the plugin developers will investigate further your request.

    Thank you

    Plugin Author mra13

    (@mra13)

    Htaccess will likely be the best option. You can add a rule in your htaccess file so if the request is not coming from your site don’t allow access to the link.

    Thread Starter stevensp

    (@stevensp)

    Have no idea how to do it though.
    Most htaccess guides are to prevent hot linking of images and files.

    Thread Starter stevensp

    (@stevensp)

    amended a bit of the code in request handler
    Not sure if it is working the correct way

    function handle_sdm_download_via_direct_post() {
     
     $ref = $_SERVER['HTTP_REFERER'];
     $refData = parse_url($ref);
    
        if ($refData['host'] == 'abc.mydowmain.com' && isset($_REQUEST['smd_process_download']) && $_REQUEST['smd_process_download'] == '1') {
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Prevent hotlink to pho url’ is closed to new replies.