Scraping bot mitigation

I have a website deployed on Netlify. Recently, it seems that someone has gotten the idea to scrape the website and constantly submit bogus form data.

I have solved the problem with the form as needed. I am curious if there is a good way to stop spam. For reference, here is a snippet of my logs, all within a second:

Dec 2, 01:42:41 AM: 5d6d913e - [GET] /wp-includes/rest-api/about.php (404)
Dec 2, 01:42:41 AM: 7e26a756 - [GET] /wp-includes/SimplePie/about.php (404)
Dec 2, 01:42:41 AM: b4793e88 - [GET] /wp-content/banners/about.php (404)
Dec 2, 01:42:41 AM: f0216927 - [GET] /wp-content/about.php (404)
Dec 2, 01:42:41 AM: 165e791e - [GET] /.well-known/about.php (404)
Dec 2, 01:42:41 AM: 88b8bf7c - [GET] /wp-includes/Text/about.php (404)
Dec 2, 01:42:41 AM: f6122aa4 - [GET] /wp-includes/ID3/about.php (404)
Dec 2, 01:42:41 AM: c24d6bfc - [GET] /img/about.php (404)
Dec 2, 01:42:41 AM: f9e4bbcf - [GET] /wp-content/languages/about.php (404)
Dec 2, 01:42:41 AM: 6a9a09a7 - [GET] /wp-includes/customize/about.php (404)

I want to mitigate this somehow but haven’t been able to determine what the best way to go about this is in Netlify. My domain is registered with Netlify.

@isaacodes There’s an edge function based mitigation provided by another user in this thread:

https://answers.netlify.com/t/why-is-my-site-invoking-hundreds-of-next-js-server-handler-functions-even-with-low-usage/125348