I strongly believe that ionic liquids worth thinking as good corrosion inhibitors in different media such as sour or sweet media. Please look at this article
Ionic liquids as green and sustainable corrosion inhibitors for metals and alloys: An overview
Generally, green inhibitors are excellent inhibitors under a variety of corrosive environments for most of the metals. The non-toxicity and biodegradability are the major advantages for these inhibitors. However, they do have performance boundaries. Although a number of publications are witnessing the green inhibitors as a potential candidate against corrosion at different environments, further research efforts are needed to employ the green inhibitors widely at an industrial level. Green corrosion inhibitors are biodegradable and do not contain heavy metals or other toxic compounds. Some research groups have reported the successful use of naturally occurring substances to inhibit the corrosion of metals in acidic and alkaline environment. Green inhibitors act when they are added in very low concentrations to treat the surface of metals or alloys in a corrosive environment.
Two important references are given below for interest of query you have.
References
1. Amitha Rani BE, Bharathi Bai JB (2011) Green inhibitors for corrosion protection of metals and alloys-An overview. Intl J Corr DOI: 10.1155/ 2012/380217.
2. Gopiraman M, Sakunthala P, Kesavan D, Alexramani V, Kim IS, Sulochana N (2011) An Investigation of mild carbon steel corrosion inhibition in hydrochloric acid medium by environment friendly green inhibitors. J Coat Technol Res DOI 10.1007/s11998-011-9374-6
Generally, green inhibitors are excellent inhibitors under a variety of corrosive environments for most of the metals. The non-toxicity and biodegradability are the major advantages for these inhibitors. However, they do have performance boundaries. Although a number of publications are witnessing the green inhibitors as a potential candidate against corrosion at different environments, further research efforts are needed to employ the green inhibitors widely at an industrial level. Green corrosion inhibitors are biodegradable and do not contain heavy metals or other toxic compounds. Some research groups have reported the successful use of naturally occurring substances to inhibit the corrosion of metals in acidic and alkaline environment. Green inhibitors act when they are added in very low concentrations to treat the surface of metals or alloys in a corrosive environment.
Two important references are given below for interest of query you have.
References
1. Amitha Rani BE, Bharathi Bai JB (2011) Green inhibitors for corrosion protection of metals and alloys-An overview. Intl J Corr DOI: 10.1155/ 2012/380217.
2. Gopiraman M, Sakunthala P, Kesavan D, Alexramani V, Kim IS, Sulochana N (2011) An Investigation of mild carbon steel corrosion inhibition in hydrochloric acid medium by environment friendly green inhibitors. J Coat Technol Res DOI 10.1007/s11998-011-9374-6.
Eco-friendly green corrosion inhibitors in overview . Research Journal in Advanced Sciences, 1(1), 7-16, 2020. Retrieved from https://royalliteglobal.com/rjas/article/view/125
Tannin: A natural corrosion inhibitor for aluminum alloys, Progress in Organic Coatings, 135, 2019, 368-381, 0300-9440,
https://doi.org/10.1016/j.porgcoat.2019.05.035.
You may find interesting available information in:
Corrosion Science ; Progress in Organic Coatings ; Surface and Coatings Technology