The internet, which is constantly advancing in technology, together with the rapidly changing internet communication technology terminals, has formed a new internet media, which has penetrated into all fields of human material life and spiritual life. This article proposes a design scheme for optimizing the impact of internet environment health on college pupils' ideological and moral education and the promotion path. It summarizes the influencing factors of contemporary college pupils' ideological and moral education through cluster analysis, optimizes the factors using Apriori arithmetic in data mining, and realizes the promotion of the path to solve problems. Finally, it carries out simulation testing and analysis. In order to promote the effective development of college pupils' ideological and political education, we should strengthen the internet management, purify the internet environment, strengthen the construction of “red websites,” and enhance their attractiveness.