I have one folder inside media and in that folder we are storing customer related files with the order id. I want to make the folder secure from outside. That's why I want to check every time is customer logged in or not before accessing from anywhere.
Please give me some suggestions so that I can proceed.