-
I want to rate limit my API's login endpoint thusly: max 1 request per second, max 5 requests per hour, max 10 requests per day.
I have implemented it like this using your middleware:
```go
fun…
Hubro updated
4 years ago
-
Code:
```
import slowapi
from fastapi import FastAPI, Request
from fastapi.middleware.cors import CORSMiddleware
def get_remote_client(request: Request) -> str:
key = request.clien…
-
-
## Motivation / Context
I'm using the `firebase-functions-rate-limiter` library, and I need the ability to automatically remove entries from Firestore that are no longer in use. Currently, the librar…
-
**## Description**
We have enabled **frontend** observability for our Angular application using the **Grafana Faro Web SDK** and **Faro Web Tracing CDN**. The frontend traces are being sent to **Graf…
-
Hi, I really like your framework and I'm currently using it for my project. I really need a rate limiter to control the traffic, I found some libraries that support Fasthttp. But I don't really know h…
-
### Problem
As part of https://github.com/open-telemetry/opentelemetry-collector/issues/8632, we want receivers to be able to reject incoming requests if the collector is running out of memory limi…
-
@danielgtaylor @victoraugustolls Thanks for the prototype solution in #386 and #387 for setting headers in error responses.
While it worked well initially, I've hit a case where I don't see soluti…
-
Currently the PCU limiter is a 1 size blanket limit. I'd like to be able to have a lower limit for small grids than for large.
-
This code will allow you to block users who are attempting a DDoS attack.
You can specify the maximum number of requests and blocking time.
```
import (
"sync"
"time"
"golang.org/x/time/rat…