Our results support that GLZ is an alternative antibiotic feed additive for enhancing immune protection by increasing IgA and IgG levels, alleviating respiratory allergies and pneumonia by decreasing ACE‐2 and IgE expressions, and preventing viral infection in weanling piglets. This evidence concerns the gene CD79A and viral infectious disease.