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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -