As in the previous question, I decided to create a website that allows django designers to upload templates and css files. I will provide a well-defined set of context inputs and objects, and then draw the templates provided by users. This, I hope, will give beginners a wide range of examples for work, and designers are a good way to stretch their wings.
I need a way to determine if a template is "safe" for rendering. Hope there is no malicious javascript, crazy requests in the way that will destroy my web server, etc. Now I know that there is no reliable way to disinfect them, but I would like something better than just "trust my users."
Any suggestions are welcome.
source
share