Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > PHP Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-04-2009, 12:56 PM
  #1
Reiss
Champion (Level 13)
 
Reiss's Avatar
 
Join Date: Oct 2006
Posts: 250
iTrader: (0)
Reiss is an unknown quantity at this point
encrypting uploaded documents

Hi all,
I have a web site where a user can upload a number of different types of documents including docx, doc, pdf, jpg, txt xls. The file details are stored in a DB table for later access within a secured CMS.
What is the best way to stop these files being opened by anybody?
At the moment, if someone knows the full location of the document, they are viewable. The documents do get renamed upon upload.
Was thinking maybe password protected zipped files, but of course will have to find a script that can do this.
Any advice much appreciated.
Thanks
Reiss is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 12:59 PM
  #2
¥åßßå
Blonde Bimbo
 
¥åßßå's Avatar
 
Join Date: Jul 2004
Posts: 2,243
iTrader: (0)
¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all
Store the files above web root and deliver them via a page that authenticates the user

¥
__________________
I may have opened the door, but you entered of your own free will

¥åßßå is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 01:36 PM
  #3
Reiss
Champion (Level 13)
 
Reiss's Avatar
 
Join Date: Oct 2006
Posts: 250
iTrader: (0)
Reiss is an unknown quantity at this point
thanks Yabba,
Not sure how to do that, will have a look at my hosting provider.
Reiss is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 01:52 PM
  #4
¥åßßå
Blonde Bimbo
 
¥åßßå's Avatar
 
Join Date: Jul 2004
Posts: 2,243
iTrader: (0)
¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all
On my setup :

/files/my_folder/my_file.ext <-- "above" webroot
/public_html/ <-- web root
/public_html/file.php/key/my_folder/my_file.ext <-- file "link"

file.php checks for an ip/file/user key and then delivers ../files/[requested_path/file.ext]

simplified, but hope you get my gist

¥
__________________
I may have opened the door, but you entered of your own free will

¥åßßå is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 03:40 PM
  #5
Reiss
Champion (Level 13)
 
Reiss's Avatar
 
Join Date: Oct 2006
Posts: 250
iTrader: (0)
Reiss is an unknown quantity at this point
Yep, got it . Thanks again
Reiss is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 08:47 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.