You can't stop anyone from doing anything... that's the bottom line here. You physically cannot stop your child from taking drugs, the only thing you can do is be there to guide and offer advice, to support them if they need your help.
Giving your child information, honest information about drug use is the only effective way to prevent them from using. If they know all the facts then hopefully that will be enough for them not to use drugs. But damn... since when has life ever been that simple?
From my experiences and from ppl I know, you turn to drugs as a means of help, you think that it will help you out from a low place, and for some ppl maybe this is true but sadly we're not all alike and ppl don't handle certain situations in the same way.
I'm just gonna make sure my children are aware that with almost every high there comes a low, but I'm not gonna tell them what they can or can't do - I'd rather educate them the best I can and let them make their own decisions, if it's the wrong ones they make then sure enough I'll be there to support them and make sure they learn from their mistakes.