php - zip file protection on server -
i have zip files in website , made log in system users valid passwords can download zip files once.
but there possibility can download zip files directly entering file path in browser address bar.
you can link of zip file viewing source code.
how can deny people downloading zip files posting file link in browser address bar? possible?
instead of placing file in web accessible folder (/var/www/
example), place above users can't browse (like /var/files
). serve users, after type password, php script, have script set headers if file, , use readfile output contents of file user.
Comments
Post a Comment