title: Security of dynamic compilation of code on the fly
body: <p>I want to create a website where people are able to run java code through a text box and I compile and run the code on the server and give them the results. Just like they do on tutorialspoint.com/compile_java_online.php. Now that being said I am trying to determine the best way to make it so they do not use malicious code or if they do use malicious code it does not hurt anything. What would be the best approach here? Use a specific container that is only used for the code execution? And if they blow up that container it just spin up another one? I am just trying to think of options for this.</p>