Python Forum

Full Version: [Solved] Private static files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I would like that certain files be only available to logged/authorized persons.

So not in the /static folder that is available for everyone.

Plz do not forward me to tutorial that explain how to do it with Flask-Login because I'm using my method of authentication.


Maybe the simplest way to do it it's to create another folder /static_private and make it work almost as the static one but for logged user only ?

But I have no idea how to achieve that.

Thanks
I succeed Big Grin It was not easy.

If you encounter the same problem, feel free to reach me and I will help.

Cheers,