File protection
Moderator: General Moderators
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
File protection
ok, so ive created a script with sessions and all that. in order to access this part of my site it requires a subscription to download certian files. all the files are stored in a directory called downloads and stored as .zip files. The problem is, if 1 person regsiters with the subscription, he can copy all the direct links to the files and post them in a warez forum....is it possable to make the files only accessable if you are loged in?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
place the files in an area outside the web accessible paths. If you're on a shared host, you should really consider moving to a dedicated one too. Changing the file owner to a separate user from the web server's default user can help along with setting the permissions properly. Force all users to go through a script to download, where the script sends the file itself.
yep, add session control,
one user login, give him a session variable.
like this php session example
one user login, give him a session variable.
like this php session example