How To Free-Base Caffeine

I probably shouldn't be linking to this kind of information. But it does raise some interesting general questions about the war on drugs. If you can create a drug at home out of ammonia and coffee grounds that provides a high not dissimilar to some amphetamines, why is it not illegal?