codeigniter + cloudflare - “Website Offline”

What You Should Know

  • As you know, Codeigniter 2.x by default store variables in cookie
  • Cloudflare cookies buffer limit is 64KB
What you can do
  • Use native session driver on Codeigniter 3.x instead cookie
  • Don’t store data too large if you are on cookie driver.

PHP

$imeis = file(‘imei.txt’, FILE_IGNORE_NEW_LINES);

if (in_array($imei, $imeis)) {

$found = true;

} else {

$found = false;

}

// Firefox Addon Greesemonkey
// script by aizuddinmanap@gmail.com
// now support blogged.my