Welcome Guest, Not a member yet? Register   Sign In
IP Tracker Script for CodeIgniter

(This post was last modified: 01-13-2015, 12:59 PM by apparasenal.)

This is a simple CI script to track website visits.

This library will record IP address, web pages they opened and the time they visited your website.

You can extend the script to include tracking the User Agent of the user visiting your website. I did not include it in the code since I didn't find it useful for my purpose. The sole purpose why I wrote this script is for me to know how many site visits I am getting everyday and from what IP's they belong

Kindly create a table in your database with the following columns:

 `ip` varchar(15) NOT NULL,
 `page_view` text,
 `date` int(11) NOT NULL,

How to use: Simply load the library in application/config/autoload.php
under autload library line.

That's it no need to call the function in each of your controller file.

Thank you.
Proprietor and Developer:


Messages In This Thread
IP Tracker Script for CodeIgniter - by apparasenal - 01-11-2015, 08:38 AM
RE: IP Tracker Script for CodeIgniter - by thaios - 01-06-2017, 08:54 AM

Theme © iAndrew 2016 - Forum software by © MyBB