codler/laravel — comment on commit 885f564c3a616a2f4d0586244dd28d58290347ba
File: laravel/request.php line 87
By dubcanada:

You may want to add FILTER_FLAG_NO_PRIV_RANGE to your filter_var to ensure the resulting IP is not 127.0.0.1 or another private IP.