inhibit from doing

inhibit someone from doing something

to keep someone from doing something. We will attempt to inhibit Karen from doing it, but we have no control over her. A serious case of shyness inhibited Harry from participating in things.

inhibit something from doing something

to keep something from happening. We need to inhibit the weeds from further growth. The weeds were inhibited from spreading by the application of a pesticide.