How to block access to a folder on a local server with PHP?

Asked

Viewed 53 times

1

I am creating an internal system, it runs through Xampp on a Windows Server server and has a folder called pdfs, I wonder if it is possible to block the access of the users of WEB SYSTEM that I’m creating in this folder.

the encoded pdf name would be in the database to display that pdf when needed, but would not like users to view all pdfs inside this folder if they put the url in the browser.

  • In windows explorer, select the folder right-click->Properties->Security

  • maybe this link will help you;https://answall.com/questions/142656/bloquear-acesso-direto-a-arquivos-e-diret%C3%B3rios

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.