How do I prevent mysite.com/static from being visible and accessible for everyone? I discovered that it's accessible by accident.
I am using Flask and Python3.
I don't know how to prevent this.
How do I prevent mysite.com/static from being visible and accessible for everyone? I discovered that it's accessible by accident.
I am using Flask and Python3.
I don't know how to prevent this.
Flask creates the /static/<filename>
route by default.
You can prevent that by setting static_folder
to None when you instantiate Flask:
app = Flask(__name__, static_folder=None)