The Directorate General for the Regulation of Gambling  offers on the website www.jugarbien.es,

among other features, the option to join the National Exclusion List in order to be blocked from all online gaming in Spain. An explanatory video about the National Exclusion List can be found here: www.jugarbien.es/contenido/el-juego-y-la-autoexclusion.