Zubrag.com
February 08, 2012, 03:32:31 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: Hide real file path and count times download?  (Read 2888 times)
xmalevn
Newbie
*
Posts: 1


« on: July 07, 2009, 01:23:46 am »

Hello!

I have a free Web host and free File host. My question we can modify Smart File Download Script to let it hide real file path download (stay on free host), and count times download by create a log file (on free Web host).

Thanks!

Logged
mtg
Newbie
*
Posts: 15


« Reply #1 on: July 07, 2009, 09:20:19 am »

You should be able to, but it would depend on the host. You just need to specify the base directory for the files, and that directory should be kept outside of the web root directory so that it can not be accessed directly, but only by the download.php script. Line looks like the following:

Code:
define('BASE_DIR','E:/inetpub/securedocs');

For the log file, you just need to make sure LOG_DOWNLOADS is set to true and you define a path for the log file. Also make sure you give permissions to the log file for your Web server to be able to write to it. The lines look like the following:
Code:
// log downloads?  true/false
define('LOG_DOWNLOADS',true);

// log file name
define('LOG_FILE','../downloads.log');

Logged
Pages: [1]
  Print  
 
Jump to:  

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