Hello experts, I have a website for downloading files and I'm using php to serve download but it has heavy load on resources and downloading usually interrupted so.. I want to make the apache handle all downloads but allowing only registered users to download files and redirect unregistered users to the login form how can I do this using apache mods?
download link looking like domain.com/files/filename.abc I want that url to respond by sending file in case the referrer is domain.com and user is authenticated otherwise refuse connection