I have a site built with Next.js. There are 3 system-generated functions to handle requests as described here.
But I’m seeing a lot of spam requests sent to invalid endpoints that are wasting the bandwidth. For example, the valid requests for my site are to endpoints like -
But I’m getting a lot of requests sent to endpoints like -
Also, it’s a marketing site, so most content doesn’t require a user login.
Is there a way to prevent these spam requests?