Eval code in sandbox. Is it possible?

Hi.
Is there any way to eval third-party code with custom environment?
For example, if I allow a user of a web interface to write custom Julia’s code to perform data conversion, and then execute this code on the server, is there a way to prevent this code from accessing the server file system without analyzing the code itself?