The invention discloses a crab fodder capable of resisting virus. The crab fodder is characterized by comprising the following raw materials in parts by weight: 23-31 parts of corn stigma, 26-34 parts of tofukasu, 19-24 parts of rice screenings, 21-27 parts of crumbs, 17-19 parts of pea, 1-2 parts of twinsweet, 1.3-4 parts of microcrystalline cellulose, 0.1-0.3 part of lophatherum gracile extract, 5-8 parts of astragalus polysaccharide, 6-9 parts of calcium carbonate, 27-35 parts of lamb liver, 7-9 parts of rapeseed oil, 18-26 parts of hornwort, 16-19 parts of watermelon peel, 13-16 parts of wax gourd, 12-14 parts of L-carnitine, 0.2-0.4 part of codonopsis pilosula, 0.3-0.6 part of angelica sinensis, 0.1-0.3 part of golden cypress, 0.6-1.2 parts of vervain, 0.7-1.3 parts of common andrographis herb, 3-6 parts of a phagostimulant and appropriate water. According to the invention, the crab fodder, prepared through the formula disclosed by the invention, has the virus resisting function due to the adding of codonopsis pilosula, angelica sinensis, golden cypress, vervain and common andrographis herb; the added lamb liver is rich in vitamin A and phosphorus, serves as the animal fodder of crabs by replacing stock of fish, is comprehensive in nutrition, and has the efficacies of liver protection and eyesight improvement; the crabs fed by the fodder disclosed by the invention, are large, tightening in meat quality, high in survival rate, and the fodder has a broad in market application prospect.