Chromate free corrosion inhibitors are searched for to mitigate the economic loss caused by mid-steel corrosion. Here, we show metal-free organic inhibitors having free coumarate anions that can be used either as direct corrosion inhibitors or incorporated into a polymer coating obtained by UV-curing. Four different ionic liquid monomers and polymer coatings with hexoxycoumarate anion and different polymerizable counter cations were investigated. Potentiodynamic polarization, electrochemical impedance spectroscopy, and surface analyses have verified their corrosion inhibition performance on a mild steel AS1020 surface. In the case of the coumarate ionic liquid monomers, the most promising inhibitor is the one coupled with the ammonium cation, showing an inhibition efficiency of 99.1% in solution followed by the imidazolium, pyridinium, and anilinium. Next, the ionic liquid monomers were covalently integrated into an acrylic polymer coating by UV-photopolymerization. In this case, the barrier effect of the polymer coating is combined with the corrosion inhibitor effect of the pendant coumarate anion. Here, the best polymer coatings are those containing 20% imidazolium and pyridinium cations, presenting a greater impedance in the EIS (Electrochemical Impedance Spectroscopy) measurements and less evidence of corrosion in the scribe tests. This article shows that the cationic moiety of coumarate based ionic liquids and poly(ionic liquid)s has a significant effect on their excellent corrosion inhibition properties for a mild steel surface exposed to aqueous chloride solutions.