ID: e9b7d No. 1668 [Odpowiedź]
Where is the best pace to put this cloudflare code without braking the code?
>Note: This will only fix the IP address for scripts that need to know the IP and not your actual server logs.
>If you can't install mod_cloudflare, or if there is no plugin available for your CMS platform to restore original visitor IP, you would want to put this code in your site in or before the <body>:
`<?php if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
P.S. I've tried and only broke the site with this code.