K
K
khomaldi2018-12-17 05:19:00
Apache HTTP Server
khomaldi, 2018-12-17 05:19:00

How to disable script execution in a folder?

Hello. There is a folder, let's say uploads. How can I disable the execution of any scripts in uploads from the main .htaccess? I know there is an option to create .htaccess in the uploads folder itself, but I have heard that it is possible to overwrite the file, which is not safe. If you have a better way how to protect the server, then I will be grateful)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2018-12-17
@Softer

Whitelist PHP files. You can only do them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question