Function use only proxy mode

Greetings. I want to know if it is possible to make the possibility of allowing only the use of a proxy mod?