Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Preventing direct downloads with Downloads Controller


szilagyic

Recommended Posts

Hello:

 

I recently tested out Downloads Controller 5.3.2c on a fresh OSCommerce 2.2 RC 2a installation. Everything is working great as documented. But I have one question. Can Downloads Controller be pointed at another directory other than the default "download" folder that is located within the other public OSCommerce files? The reason I am asking is this: If somebody makes a purchase, and downloads the file (let's say it is called "file.zip"), they can potentially write down the name of the file and then point others at the URL: http://mystore.com/download/file.zip. Obviously they would have to know that this is a default OSCommerce store and that the "download" folder is there. But, if there was a way to move the publicly available "download" folder to another path on the local filesystem, this would prevent any possible direct downloads.

 

Can this be done? I started to look at other posts incase somebody has already looked at this, but I haven't come across anything yet.

 

Thanks very much in advance!

 

--

Chris

Link to comment
Share on other sites

I ended up fixing this on my own. I found that by changing the value of "DIR_FS_DOWNLOAD" in configure.php, you can point your download folder to another folder outside of the public OSCommerce files. By doing this and using Downloads Controller, you can protect your files from getting downloaded and the users will be forced to go through the store, even if they know the name of the actual file.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...