It would depend what you are using on the frontend to make the request.
If you are using the fetch API (native in all browsers except IE) you can access the response headers developer.mozilla.org/en-US/docs/W...
I would probably look for a monitoring tool to do this for you though, like datadog or AWS Cloudwatch or Azure Applications Insights.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It would depend what you are using on the frontend to make the request.
If you are using the fetch API (native in all browsers except IE) you can access the response headers
developer.mozilla.org/en-US/docs/W...
I would probably look for a monitoring tool to do this for you though, like datadog or AWS Cloudwatch or Azure Applications Insights.