[SOLVED] Stop direct downloads

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CraigB
Forum Newbie
Posts: 9
Joined: Mon Mar 22, 2004 10:05 am

Stop direct downloads

Post by CraigB »

We have a download page that requires a log-in to download the files. What I need to know, is there a way we can use some script to keep people from downloading the file directly if they just happen to guess the direct path to it.

Let's assume we have our files in a subfolder called "downloads" and the file is called "gaming_software.zip". To go through the website they have to create a membership, but lets say they type in http://www.mydomain.com/downloads/gaming_software.zip and the file starts the download. Basically bypassing having to sign up for an account. Is there a script I can put in this subfolder that won't allow a direct download like that?

Any help would be appreciated
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

previous threads:
CraigB
Forum Newbie
Posts: 9
Joined: Mon Mar 22, 2004 10:05 am

Post by CraigB »

Thanks feyd, the second link which had a link to hotlinking was exactly what I was looking for. Thanks for the link

CB
Post Reply