Restrict few commands to execute

So, is there anything in .ipfs\config file where we can restrict only few commands to be accepted by daemon.

Like say suppose I don’t want cat,read, write commands to work.
I want to allow only files ls command.

Is there a way to do whitelisting of few commands?

Thank you