It uses the ip of the person making the request. Your frontend is running in their browser
Jan 23, 2023
3
Level 8
Throttle API Routes
Hey,
I'd like to rate limit my Laravel API but I have a question. If I use the throttle middleware for a route to prevent too many attempts at a time from the same IP address, is the IP address it's using to make that determination the IP address of my front end? Or is it using the IP address of the user making requests from my front end?
For example, if I use 'throttle:3,10', does that mean if four users utilize my front end application within the space of 10 minutes, one of them will be blocked?
Level 102
1 like
Please or to participate in this conversation.