Zubrag.com
February 07, 2012, 07:25:34 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can I hide the real dir and its files?not logged users cannot download files  (Read 1998 times)
447
Newbie
*
Posts: 3


« on: January 11, 2010, 09:21:13 pm »

I would like all logged users to download files by using the smart file download link only.
I do not want them to find out the real link and download files without log in.
Can anyone generate a script for me or help me to hide the real dir (i.e.: not logged users cannot download files by using the real link/url)?

Logged
mtg
Newbie
*
Posts: 15


« Reply #1 on: January 13, 2010, 09:25:12 am »

What you want is the exact purpose of the smart file download script. If you don't want non-logged in users to download the files, you need to put the files outside of your web root directory and specify that as the download directory in the script. This way the only way to access the files is through the download script. If you have a login process already, you'd just need to check login credentials at the top of the download script. This way only logged in users can access the download script, which then accesses the protected files outside of the root directory.The only way to download the files would be if you were logged in and using the download script. You would not be able to access the files directly without the script or without being logged in as they are outside of the web root and the download script would check for login.
Logged
zubragbillone
Newbie
*
Posts: 8


« Reply #2 on: January 27, 2010, 05:41:33 am »

Hi 447,
just go here,  http://www.zubrag.com/forum/index.php/topic,182.0.html,  first post.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC