2
I’m having a problem, I have a directory of different files type csv, xls, pdf, docx... I wanted that person. h that put in the browser the file link did not have access to it, only those who made the access by the login page had access. How do I do that?
But how do I block access to the files?
– Renato Junior
I already have the login page that way
– Renato Junior
You will block direct access to the files via URL, this way will display the files using PHP. I will update the code, showing how to block with htaccess
– Rafael Augusto
Okay, I already know this, but it doesn’t solve the problem, for example: localhost/files/.pdf file, whoever types this has access to the file. But I wanted only those who have the access session to have access to it
– Renato Junior