Protecting the files inside the downloadable files folder

Home Forums Product Support Secure Download Links Protecting the files inside the downloadable files folder

This topic contains 0 replies, has 1 voice, and was last updated by  admin 11 months, 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #197794

    admin
    Keymaster

    Hi Everyone!,

    Protecting the files inside the downloadable files folder is very important for being able to use “Secure Download Links” in the correct sense.

    A simple solution to protect a folder that contained images or downloadable still allow access to the same file when accessed by your script can work like this.

    Check:

    http://www.satyamtechnologies.net/secdown/sec_files/samplepdf.pdf

    it will redirect you to home page so file is not accessible directly.

    When you access it through “Secure Download Links Script” through the demo page.

    http://www.satyamtechnologies.net/secdown/example.php

    it will let you download the file.

    the .htaccess code is below. this .htaccess file is placed inside the sec_files and/ or downloadable files folder.

    RewriteEngine on

    RewriteCond %{REQUEST_URI} ^/~sec_files/ [OR]

    RewriteCond %{HTTP_HOST} ^www.satyamtechnologies.net$

    RewriteRule ^(.*)$ http://www.satyamtechnologies.net [R,L]

    thanks,
    Anu

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

 
Follow

Get the latest posts delivered to your mailbox:

We do not share information about our subscribers.