cgi - Letting users upload Python scripts for execution -
I understand that uploading any type of file to an anonymous user can normally be dangerous, Especially if this code is, however, I have an idea that users can upload custom AI scripts on their website. I provide the template so that the user can compete with other AI in Python in an online web game. I need a solution to either make sure that a user can not compromise any other files or resolve malicious code through its uploaded script or client-side execution of the game . Any suggestions? (I'm looking for a solution that will work with my Python script)
(Eg Import Statement)
(To make sure that you do not miss anything) uploading a comprehensive API users and uploading all other calls , You want to pass many.)
Comments
Post a Comment