Prevent commands from being executed, except those whitelisted