ubuntu 16.04 x64. I install nginx, do not change default configuration.
I have /var/www/html
with one index file. I see content of index file, if open my site in browser.
Now I copy new file to /var/www/html (place near index). Ofcouse I know file name and can append to site url this name and open file in browser.
Can anybody detect this file and open it in browser too?
There are different tools that can scan your website using a list (or lists) of popular files/folders. If you want to keep these files private but still accessible to someone, you can:
/var/www/private/
) and write a simple page that will read the file (you can still add auth and everything, e.g. IP whitelisting) in your favorite language (Ruby, PHP, NodeJS, Python, Go, etc.)I'd go with the second one. See the nginx documentation to learn how to configure it.
Is very unsecured to left data only behind
index.html
. A lot of tools is designed to search this files. Named for this tools areURL fuzzer
. You have online version here.Edit 1
Meybe "behind" is not best expression. You can create additional folder in
DokumentRoot
folder on you site and protect them with.htaccess
. Configuration of.htaccess
you can find here. You will get folder with username/passwork protection.