I need php code for downloading zip files from my site !!

careerbridge

New Member
Messages
252
Reaction score
0
Points
0
Hi guys,

An issue, my site contains zip files whcih are available for the visitors to download. But I don't want to disclose the actual path of the zip file (or http address of the file on the site)

ok consider the case, the zip file is.......

/database/attachments/7377.zip


But I will give a link to my php file like this one in this forum........

http://forums.x10hosting.com/attachment.php?attachmentid=951&d=1152532665

how can I do it?? please help

CRB
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
can you give us the link to the download page?
because from there we have to go further :)
 

Torch

New Member
Messages
634
Reaction score
0
Points
0
I've PM'd you the script. Hope it's what you need :)
 

careerbridge

New Member
Messages
252
Reaction score
0
Points
0
Wow, thats cool... thanx a lot. Yes, I got wat i need !! ;) You got my 51 points......
 
Last edited:

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
Just so you know, people can still figure out the proper URL for the file ;).
 

Torch

New Member
Messages
634
Reaction score
0
Points
0
Of course, physical path can always be figured out, if you know how, and there ain't a script that could completely hide it. One way that bypasses any script is just a simple analysis of HTTP headers.

Only way to completely mask it is, well, not to have physical path at all. Instead, storing files in database. That works fine with smaller files, but with larger ones it makes one hell of a lot strain on DB server, so it's not such a great solution.
 
Last edited:

dharmil

New Member
Messages
1,656
Reaction score
0
Points
0
um you can just do


Code:
IndexIgnore *

so the files wont show up in the dictonry it will hide them...

1. Open Note Pad Put this in there
Code:
IndexIgnore *
2. Then save it as .htaccess
3. Upload it to the folder you want to protect or to the root to protect all folders with out indexes...

 
Last edited:

Torch

New Member
Messages
634
Reaction score
0
Points
0
dharmil said:
um you can just do


Code:
IndexIgnore *

so the files wont show up in the dictonry it will hide them...

1. Open Note Pad Put this in there
Code:
IndexIgnore *
2. Then save it as .htaccess
3. Upload it to the folder you want to protect or to the root to protect all folders with out indexes...
Hehe, that's not what we've been talking about :)

I's saying that you can't hide physical address of file when it's being downloaded ;)
 
Last edited:
Top