Whitelisting files with certain extensions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Whitelisting files with certain extensions


we had following problem: one of the developers has saved a .php file
as .php.old. This file, if requested directly, was offered by nginx for
download and thus exposed. What is the right way to solve this?

1. initial idea was to whitelist all the legitimate file extensions that
we use and block the rest. Is this the right approach? If yes - what is
the best way to do this?

1.1 we have one directory that has legitimate files without any
extension that we also want to serve... how to make an exception for
this directory?

Thank you!

nginx mailing list
[hidden email]