Skip to content

How to create a secured sandbox for javascript to run? #303

Answered by ClearScriptLib
nextfool asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nextfool,

You can run scripts in separate script engine instances to keep them unaware of each other. However, buggy, malicious, or resource-starved scripts could still crash the process and take down your host.

If you must run untrusted scripts safely, the best way is to run them in separate processes a-la Chromium. That way you could use the capabilities of your operating system to limit resource usage and recover from process crashes.

Good luck!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nextfool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants