Use Smart File Downloader to avoid direct files downloads (hide real file paths), and to limit downloads to only some set of file types.
Features:
- Customizable allowed file types for download
- Predefined mime type settings for following extensions: zip, pdf, doc, xls, ppt, exe, gif, png, jpg, mp3, wav, mpeg, mpg, mpe, mov, avi
- Hotlinking protection
- Script can log downloads in plain text file. Log file includes: IP, date/time, filename. Can turn this feature on/off.
- Automatic mime type detection (if Mimetype or Fileinfo extension installed on the server)
Usage:
- Unzip script to some folder
- Update download.php with your desired settings for base downloads folder, downloads log file name, allowed file types
- Use following syntax for downloads: download.php?f=FileName
1 2 3 | <a href=http://demo.bienthuy.com/php/smart-download/download.php?f=download.zip> Download Code </a> |
Demo Smart Download Link
Download Code (And also Demo for this tutorial)
Other Posts you may be interested in:
- Cách cài đặt Ccleaner để dọn rác máy tính – Phần 2
- Coupon free 10$ VPS Digital Ocean tháng 12 năm 2014
- Cách ẩn các thông báo lỗi (Warnings and Notices) trên WordPress
- Hosting – Dreamhost shared hosting packages
- Thánh Dực quân thời nhà Trần
- Những điều cần biết khi nâng cấp lên Windows 10
- Lập biểu đồ bằng PHP với PHP Lib Chart
Last updated on September 9th, 2014 at 03:25 pm