PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Jul 09, 2020 11:24 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Feb 17, 2005 12:33 pm 
Offline
Forum Newbie

Joined: Mon Dec 20, 2004 5:53 am
Posts: 9
I am creating a website with information that is available to download by PDF.

Users will log in to an "account" area and depending upon who they are different PDF downloads will be made available.

The problem is once the directory containing the downloads is known, users could guess at the download filenames.

Is there any way that PHP can pass a username and password to a directory protected with .htaccess? If there is I could create different folders and once a user logs into to their "account" area in PHP I could record their username and password and direct them to a folder that is protected by .htaccess without them having to login again!

If you know what I mean!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 12:40 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
why not store the pdf's off somewhere else, and use a downloader script? If the pdf's were stored outside the document root, then the files can't be downloaded directly via guessing or any other form, they'd require access to the server's file system.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 1:35 pm 
Offline
Forum Newbie

Joined: Mon Dec 20, 2004 5:53 am
Posts: 9


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 17, 2005 3:50 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 3:23 am 
Offline
Forum Newbie

Joined: Mon Dec 20, 2004 5:53 am
Posts: 9


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 7:14 am 
Offline
DevNet Master

Joined: Tue Jan 20, 2004 12:11 am
Posts: 4897
Location: Leuven, Belgium


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group