How to display the IP address of a visitor?

October 2017

The IP address of a visitor refers to the computer address that has been used by the later and it can be practical in many ways.

You can know who visited your website and from where they are from. You will be able to know how many times the same user has visited the website and what are the favorite sections that are chosen by the user. By this, you can optimize your website depending on your public. Personalizing your website is a great marketing tool that can increase the traffic on your website.

The PHP code for this function is



Published by jak58. Latest update on November 21, 2009 at 03:08 AM by jak58.
This document, titled "How to display the IP address of a visitor?," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (