Tracking unique visitors only?

后端 未结 7 1901
猫巷女王i
猫巷女王i 2020-12-03 05:49

Currently I have a file called \"hits.php\" and on any page I want to track page hits I just use

How can I track u

7条回答
  •  青春惊慌失措
    2020-12-03 05:58

    1. At a basic level, you can get the client's IP address by using the PHP $_SERVER['REMOTE_ADDR'] property
    2. Consider setting a cookie or using a session, though this can be defeated by deletion of a cookie or cookie rejection. See the PHP setcookie docs for more info.
    3. There are other methods for browser fingerprinting - check out all the different data you could conceivably use at https://panopticlick.eff.org/index.php

提交回复
热议问题