PHP Smart download – Hide real files path


Use Smart File Downloader to avoid direct files downloads (hide real file paths), and to limit downloads to only some set of file types.

  1. Customizable allowed file types for download
  2. Predefined mime type settings for following extensions: zip, pdf, doc, xls, ppt, exe, gif, png, jpg, mp3, wav, mpeg, mpg, mpe, mov, avi
  3. Hotlinking protection
  4. Script can log downloads in plain text file. Log file includes: IP, date/time, filename. Can turn this feature on/off.
  5. Automatic mime type detection (if Mimetype or Fileinfo extension installed on the server)


  1. Unzip script to some folder
  2. Update download.php with your desired settings for base downloads folder, downloads log file name, allowed file types
  3. Use following syntax for downloads: download.php?f=FileName

Demo Smart Download Link
Download Code (And also Demo for this tutorial)

PHP Smart download – Hide real files path
5 - 1188 votes

Other Posts you may be interested in:

  1. Bảo mật cá nhân trên Windows 10 – privacy setting
  2. Ất Mùi 2015 – việc nên làm và không nên làm
  3. Cách lập trình viên giải thích cho khách hàng hiểu công việc
  4. Gọi đò – Dương Ngọc Thái
  5. How to fix Error 0x8007045b
  6. Hostgator đang âm thầm khuyến mại 75% OFF
  7. PHP convert accented characters to ascii
Cập nhật lúc: 15:25:53 PM, 9th September 2014


Leave A Reply