Ten 1,4-disubstituted 1,2,3-triazoles were synthesized from one of 1-(azido-methyl)benzene, 1-(azidomethyl)-4-fluorobenzene, 1-(azidomethyl)-4-chlorobenzene, 1-(azidomethyl)-4-bromobenzene or 1-(azidomethyl)-4-iodobenzene, generated in situ from sodium azide and the corresponding benzyl halide, and dipropargyl uracil or dipropargyl thymine. Optimal experimental conditions were established for the conventional click chemistry. The corrosion inhibiting properties of some of these compounds, which were determined by means of an electrochemical technique, are also presented.