aelve / guide

A workspace for research teams
https://guide.aelve.com
106 stars 10 forks source link

Implement some kind of throttling to prevent DoS #12

Closed neongreen closed 8 years ago

neongreen commented 8 years ago

See https://hackage.haskell.org/package/wai-middleware-throttle-0.2.1.0/docs/Network-Wai-Middleware-Throttle.html

neongreen commented 8 years ago

Have to be careful – it uses Request's remoteHost and it's always going to be 127.0.0.1. Maybe I could write my own middleware that uses the “forwarded-for” thing to replace remoteHost.