0

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.

1

You can protect this folder with .htacess

order deny,allow
deny from all

Also you can allow access for specific IP adding next line

allow from 127.0.0.1
1
  • The main problem is the customer should be allowed to view the file only if the customer is loggedin. – Asheem Patro Jun 23 '16 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.