How to prevent spams from admin-ajax.php file?

I noticed today that a spammer is posting comments on my website using the admin-ajax.php file. Does this mean that my website is hacked?

If it is not hacked, how can I prevent that person from posting spam comments using this file?

Thanks.

Topic wp-admin comments spam Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.