How to protect the php files and photos uploaded to my host host host? [closed]

0

Hello everyone I am working on a project in which I have uploaded files to my host which I have put the .php extension as well as a photo folder, I would like to protect my files both the photos and the php files so that do not see neither its content nor its name, since to put for example www.mihost.com/uploads shows me an index, try putting password to the folders from Cpanel the menu of my host but when I use the system even if I call the photos from the php or any other file asks me for the key, help is a web application by the way and I need to protect the photos of employees and customers.

    
asked by Daniel Treviño 12.10.2017 в 05:25
source

1 answer

2

If the system you use to upload your files does not use a user system that manages privileges, the only thing that occurs to me (it is not infallible) is to put a file called index.php in the uploads folder and then redirect to the index of your host. This way when they want to enter tudominio.com/uploads they will be redirected to tudominio.com

    
answered by 12.10.2017 в 11:07