# How to use rate limiter for my site API endpoint?

**URL:** <https://answers.netlify.com/t/how-to-use-rate-limiter-for-my-site-api-endpoint/34367>\
**Category:** Support\
**Tags:** netlify-newbie\
**Created:** [March 16, 2021, 11:07am UTC](https://answers.netlify.com/t/how-to-use-rate-limiter-for-my-site-api-endpoint/34367 "2021-03-16T11:07:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [March 22, 2021, 9:03pm UTC](https://answers.netlify.com/t/how-to-use-rate-limiter-for-my-site-api-endpoint/34367/3 "2021-03-22T21:03:39Z")

</div>

Hiya @khassanov and welcome to our forums!

There isn’t any built in rate limiting feature for static files you’d serve via your site - is your API static? If so, we wouldn’t expect any problem with thousands of requests per minute to it. If there is a backend computing component, you could try to add rate limiting there, but it would be a bit hard to do as you’d have to write it yourself and keep the state around connection velocity (e.g. in the database that the function or remote service accesses).

Our upcoming Edge Handlers feature ([https://www.netlify.com/products/edge/edge-handlers/](https://www.netlify.com/products/edge/edge-handlers/)) will give some more flexibility in this regard.

Re: nameservers, you can host DNS anywhere without problems using Netlify; Cloudflare has some of the best options: [[Support Guide] Which are some good DNS providers for ALIAS/ANAME support?](https://answers.netlify.com/t/support-guide-which-are-some-good-dns-providers-for-alias-aname-support/211) . However, most of Cloudflare’s services - including the one you speak of in all likelihood - require a configuration there that is really suboptimal for our service - proxying TO us from them (so they can terminate your connections and apply their security rules to page loads through their service).

This article describes the problems with that configuration, which we can’t stop you from using, but which we cannot provide tech support on:

> [@\[Support Guide\] What problems could occur when using Cloudflare in front of Netlify?](https://answers.netlify.com/t/support-guide-why-isn-t-my-ssl-certificate-provisioning-automatically-with-cloudflare-netlify-are-there-other-problems-with-using-cloudflare-in-front-of-netlify/138):
>
> Last reviewed by Netlify Support - August, 2023 Note: We recommend not using both Cloudflare’s CDN (“Accelerate and Protect”, the orange cloud in their UI) and Netlify for the same site at the same time. Why? Read on! Netlify’s web service is not designed to work optimally with another CDN “in front of” our CDN. [Proxying to our service is in general not supported](https://answers.netlify.com/t/support-guide-why-not-proxy-to-netlify/8869) and we advise you not to do it for best hosting results. Cloudflare has made similar statements that it doesn’t recommend this usa…

Take a look and let me know if you have any questions!

---

_[View the full topic](https://answers.netlify.com/t/how-to-use-rate-limiter-for-my-site-api-endpoint/34367)._
