Can I apply Rate limit for specific endpoints?

I can see we can control the rate limits from the listed environment variable, but what if I want to limit it to specific endpoints (the public endpoints)? specially the POST for example, how can I do so?

1 Answer

1

No, the system built in rate limiter is global. That being said, if you’re building a custom endpoint with an extension you could add your own rate limiter on that endpoint.

I have recently found myself needing something similar. Rate limiting user ips on email triggering requests like forgot password. Is there directus native solution here like building extensions or can I only handle this at the web server proxy layer.