help in protecting files

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
dakkonz
Forum Commoner
Posts: 69
Joined: Sat Dec 27, 2003 2:55 am
Location: Asia

help in protecting files

Post by dakkonz »

Is it true that if a person have the filename of the files i have in the server they will be able to download it??

Coz i have a website and wants to give a gift to those who donates to me... i wan the file to be protected so that only that selected users will be able to download the file... the file are image files....(wallpapers and stuff)

What is the best way to prevent others from downloading the file???
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

put all the downloads in a new folder, restrict the users access with htaccess or prefereably sessions as its much less hassle

my $0.02
Post Reply