The aim of this study was to evaluate whether volatile compounds released by melon genotypes interfere in the attractiveness and repellency of Liriomyza sativae Blanchard (Diptera: Agromyzidae), and to characterise the phenolic compounds of melon genotypes, as well as the antibiotic action of these compounds on L. sativae. Through experiments, it was shown that the volatiles of the melon genotypes CNPH 06-1047-343, CNPH 06-1047-333 and CNPH 06-1047-341 showed little attractiveness to L. sativae, while the volatiles of the Goldex commercial hybrid were more attractive. By analysing the volatile profiles, it was possible to identify the compounds acetic acid, (Z)-3-hexen-1-ol, α-pinene, (Z)-β-ocimene, (E)-β-ocimene, linalool, allo-ocimene and neo-allo-ocimene. The CNPH 06-1047-343, CNPH 06-1047-333 and CNPH 06-1047-341 melon genotypes show resistant characteristics due to the non-preference of L. sativae because of the smaller number of volatiles and the higher concentration of acetic acid in their volatile composition. The phenolic compounds characterised were hydroxybenzoic-hexoside acid, ferulic acid and trihydroxy-octadecadienoic acid. The CNPH 06-1047-333 and CNPH 06-1047-341 melon genotypes presented, respectively, the highest and lowest levels of total phenolics, but there was no difference in the larval or pupal viability of L. sativae, indicating a lack of any relationship between total phenols and antibiotic resistance of the melon genotypes to L. sativae. In general, based on the analysis of volatile and phenolic compounds, the CNPH 06-1047-343, CNPH 06-1047-333 and CNPH 06-1047-341 genotypes are less attractive to L. sativae than the commercial hybrid genotypes (Goldex).