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

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

minify - Minimizing css files -

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