A CDN is DNS side not Site side, So with a CDN such as CloudFlare you just point your DNS settings to their Name Servers and your good to go. Although when a person comes to your site however it doesn't always load Their IP but the one of cloudflare, Fix that by doing this:
Open your Index.php file on the top level of the site and add:
Right below the:
Hope this helps
Open your Index.php file on the top level of the site and add:
Code: Select all
// Cloudflare CDN
if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
Code: Select all
// Version
define('VERSION', '1.5.5.1');
Hope this helps
Who is online
Users browsing this forum: No registered users and 3 guests