I can't install mod_cloudflare and there's no plugin to restore original visitor IP. What should I do?

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 Cloudflare 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'])) 
Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk