How To Install Squid3 on Ubuntu 14.04 with Minimal Configuration

We will setup with auth basic authentication

sudo apt-get install squid3

sudo nano /etc/squid3/squid.conf

auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/users
auth_param basic realm Private
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
http_port 3128

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;

}