DEV Community

Discussion on: I built a popular open source API project, Ask Me Anything!

Collapse
 
ayyappa99 profile image
Ayyappa

Thanks for the details. Do you have any recommendations on protecting a public api from DDoS attacks? I haven't found a direct way with Cloud Flare to protect a REST API, where as I see they have good details for protecting a website though.

Thread Thread
 
phalt profile image
Paul Hallett

Set your DNS up with Cloudflare, it'll deal with 90% of issues. You can also set up rate limiting in your project. We used to do rate limiting by IP address.