This study aims to investigate the impact of internet addiction on the self-efficacy of middle school students after the resumption of classes during the COVID-19 pandemic, and to analyze corresponding countermeasures. In the field of education, the application of self-efficacy has significant implications. Enhancing individual self-efficacy plays an important role in the prevention and treatment of internet addiction. There is a negative correlation between internet addiction and self-efficacy, meaning that the higher the level of internet addiction, the lower the self-efficacy of middle school students. Based on this, this paper proposes interventions to enhance self-efficacy and prevent internet addiction. In a supportive social and policy environment, through concerted efforts from schools and families, we can effectively address internet addiction issues amidst the backdrop of COVID-19, promoting students' physical and mental health development, enhancing their self-efficacy, reducing their dependency and obsession with the internet. Future research could further explore the specific factors influencing internet addiction and self-efficacy, conduct more detailed cross-group comparative studies, and examine the differences and correlations between different groups in terms of internet addiction and self-efficacy. We will also continue to explore the possibility of using intelligent technology to intervene in internet addiction, devising personalized treatment plans tailored to individual characteristics and needs.