It's impossible to stop farting all together, but there are ways to help the body produce less gas. Taking note of what foods produce farts and avoiding those foods can reduce farting.
Eating more slowly can also keep a person from swallowing extra air that would otherwise be released as a burp or a fart.
Supplements and antacids (like Beano and Mylanta) reduce symptoms of gas, like bloating and abdominal pain, but will not necessarily make a person fart less.