Function ___netlify-handler abusement

Hello everyone,

I received a notification from Netlify saying requests are almost at the limit. I checked functions logs and it appears that Function ___netlify-handler keeps getting called with random directories, for example:

/hehe.php
/upload.php

Isn’t there a way to stop an attacker from doing this? if this keeps going I am going to exceed the limit.

Thank you for your help

The only way to do that is to manually configure Netlify Redirects: Redirects and rewrites | Netlify Docs OR use Netlify Edge Functions: Edge Functions overview | Netlify Docs