php - Set a check-Post or process before accessing the document in codeignitor -


i'm working codeignitor. want set process or check-post in codeigniter should check user logged in or authorised or not before accessing document. currently, i'm checking user in normal process don't how documents because documents accessible using direct link to document directory , filename.

for ex. "localhost/project/assets/docs/file.pdf"

how prevent unauthorised access file?


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -