monicahq / laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does HTTP_CF_CONNECTING_IP affect?

kslr opened this issue · comments

commented

Hi

I added it in public/index.php

if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
    $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}

Do I need to remove it?

I think this is not affect to this package