Jump to content
Sign in to follow this  
szilagyic

Preventing direct downloads with Downloads Controller

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I'm thinking of trying out Downloads controller so that's really useful info szilagyic, thanks for sharing it with us.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×