Doctors do not know of any way to prevent liver cancer. You should avoid risk factors as much as possible. Below are some ways to avoid risk factors.
Avoid activities that increase the risk of catching the hepatitis B virus. These activities include using intravenous drugs, having many sex partners, and handling human blood or fluids without protection. Ask your doctor if you should get the hepatitis B vaccine.
Avoid drinking a lot of alcohol to prevent cirrhosis, a disease of the liver.
Avoid any raw food that may contain the fungus Aspergillus flavus.