jhonaxel 0 Report post Posted March 29, 2013 How to make a download page in own site, which i can know that how many file has been loaded by particular user or particular ipaddress? Share this post Link to post Share on other sites
yordan 10 Report post Posted March 29, 2013 Depends where your own site is hosted.What kind of server is it? You are describing a private webhost, on a web hosting server. But the service you are describing looks like a fileserver service, so you should be hosted by a fileserver host.Typically a web hosting server has a small internet bandwidth, and a file hosting server has a lot of bandwidth. Share this post Link to post Share on other sites
comp2 1 Report post Posted April 19, 2013 Some download scripts will do this for you. I know if you use Joomla you can more than likely find a Joomla Extension. Share this post Link to post Share on other sites
OpaQue 15 Report post Posted April 29, 2013 If you have a html page with Downloads, Just rename it to .php and at the very top of the file, Put this Code :- <?php define('PTLD', '/mySecretlogs/' ); // <-- This is all you have to Set! define('PTLF', $_SERVER['DOCUMENT_ROOT'] . PTLD . 'logsbasename(__FILE__) . '.txt'); file_put_contents(PTLF, date("D M j G:i:s T Y") . "\t" . $_SERVER['REMOTE_ADDR'] . "\t". $_SERVER['REQUEST_URI'] . "\t" . $_SERVER['HTTP_REFERRER'] . "n", FILE_APPEND | LOCK_EX);?> A Folder which will be accessible by YourWebSite.Com/mySecretlogs/contact_us.php.txt - Ensure this folder mySecretlogs/ has write permissions and feel free to change the name in file and on Server. This will contain all Log Files for each File that needs to be tracked (which means injecting the above code and renaming the extension of file to php - pls fix any broken links this step may cause. Password Protect this folder is possible. Access your logs from YourWebSite.Com/mySecretlogs/contact_us.php.txt Share this post Link to post Share on other sites