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

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk