I didn’t test it but I think you could use this plugin
https://wordpress.org/plugins/wp-ban/
that should solve these issues
I didn’t test it but I think you could use this plugin
https://wordpress.org/plugins/wp-ban/
that should solve these issues