Various natural and synthetic polyanionic polymers with different chemical structures are known to exhibit potent antiviral activity in vitro toward a variety of enveloped viruses and may be considered as promising therapeutic agents. A water-soluble conjugate of 2,5-dihydroxybezoic acid (2,5-DHBA) with gelatin was synthesized by laccase-catalyzed oxidation of 2,5-DHBA in the presence of gelatin, and its antiviral activity against pseudorabies virus (PRV) and bovine herpesvirus type 1 (BoHV-1), two members of the Alphaherpesvirinae subfamily, was studied. The conjugate produced no direct cytotoxic effect on cells, and did not inhibit cell growth at concentrations up to 1000 µg/mL. It exhibited potent antiviral activity against PRV (IC50, 1.5–15 µg/mL for different virus strains) and BoHV-1 (IC50, 0.5–0.7 µg/mL). When present during virus adsorption, the conjugate strongly inhibited the attachment of PRV and BoHV-1 to cells. The 2,5-DHBA–gelatin conjugate had no direct virucidal effect on the viruses and did not influence their penetration into cells, cell-to-cell spread, production of infectious virus particles in cells, and expression of PRV glycoproteins E and B. The results indicated that the 2,5-DHBA–gelatin conjugate strongly inhibits the adsorption of alphaherpesviruses to cells and can be a promising synthetic polymer for the development of antiviral formulations against alphaherpesvirus infections.