Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

azbx's avatar
Level 17

Rate limiter not throttling while under a load balencer.

I have found a solution for this. https://stackoverflow.com/questions/33268683/how-to-get-client-ip-address-in-laravel-5/41769505#41769505

now the question is how do i extend Illuminate\Http\Request to implement this method for the load balancer,

"To fix this:

Illuminate\Http\Request.php

    public function ip()
    {
        //return $this->getClientIp(); //original method
        return $this->getIp(); // the above method
    }
```"
0 likes
1 reply

Please or to participate in this conversation.