Mask Download link

Status
Not open for further replies.

jeff01050

Member
Dec 13, 2006
91
0
6
Im trying to mask a download link so little pirates like myself can find the download directory folder.

example: mysite com/downloads/1.zip

im trying to mod rewrite to pull the files in but im messing up big time.

any help?
 


Instead of linking to the actual file, you can make your download links something like:

example.com/download.php?file=1.zip

In download.php script, you will just set the correct headers to force a file download, like:

header("Content-Description: File Transfer");
header("Content-Type: Application/Force-Download");
header("Content-Disposition: Attachment; FileName=...your filename...");
header('Content-Length: ...file length in bytes...");
 
Status
Not open for further replies.