Tags: codeigniter

Fix CodeIgniter IP address detection on lighttpd

If the results of a call to $this->input->ip_address() gives you “” (the “invalid address” response) and you’re running lighttpd as your web server, you may be able to fix it with a minor tweak to by extending one of the base CodeIgniter libraries. An IPv6-style header is being appended to the IPv4 address, most likely, and stripping it out before CodeIgniter considers the validity of your address should restore functionality without circumventing any of the logic. Read More →