DEV Community

Discussion on: 7 security tips for your React application. 🔐

Collapse
 
yerac profile image
Rich

only a specific number of requests would be accepted by the server. It should reject the attacker's request when it comes

**Sent **to the server, surely? The web application just makes requests over HTTP. Axios can limit for flood protection and better user experience for non-malicious users, but if someone was going to DDOS you they would intercept the API call and just replay that repeatedly, that sort of security should never be done in Javascript!

Unless you are using a JS backend too, I guess.

The only real way to prevent DDOS is a security layer at server level. Anything client side can be overridden. The golden rule of security is you never trust the web client!