Find the word definition

Wiktionary
whack-a-mole

n. (context idiomatic English) The practice of trying to stop something that persistently occurs in an apparently random manner at the point where the occurrence is noticed, such as terminating spammers’ e-mail accounts or closing pop-up advertisement windows.