Classical swine fever virus (CSFV) is an enveloped positive-sense RNA virus belonging to the Flaviviridae family. The virus utilizes cellular lipids and manipulates host lipid metabolism to ensure its replication, especially during virus invasion and replication steps. Therefore, identification of the molecular lipid metabolism pathways that are suitable targets is critical for the development of anti-CSFV therapeutics. In this study, we screened the anti-CSFV activity of 12 compounds targeting synthesis of cholesterol and fatty acids, cholesterol esters, and cholesterol transport. We found that 25-hydroxycholesterol (25HC), a regulator of cholesterol metabolism and transport, has potent anti-CSFV activity. Mechanistically, we showed that 25HC inhibited CSFV proliferation by blocking the entry of virions into porcine alveolar macrophages (3D4/21) by decreasing cholesterol abundance in the plasma membrane through activation of acyl-CoA:cholesterol acyltransferase (ACAT). Finally, we revealed that cholesterol 25-hydroxylase (CH25H), a redox enzyme that mediates 25HC production, also restricted CSFV infection via both enzyme activity-dependent and -independent mechanisms. Collectively, our results shed light on the mechanisms by which 25HC inhibits CSFV entry into cells and suggests a potential new therapeutic method against CSFV infection.