Forums / General Questions / Selling downloads - need random filename?

Selling downloads - need random filename?

Started by creamcrackers on 28 Aug 2012, 11:08 PM · Views: 430

Results 1 to 2 of 2
28 Aug 2012, 11:08 PM
#1
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

Selling downloads - need random filename?

Ive used ZC for a while now but this is first time ive tried to sell downloadable product

Ive set the download folder to 755 and the download files to 644

if my file is called product1.zip they can download that. But by going to /downloads/product2.zip when they are logged in they can also get that without paying for it?

So the solution is to have a random characters in the filename? Is there a better solution?

28 Aug 2012, 11:17 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Selling downloads - need random filename?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.