Jump to content

how to get a unique visitor registration in the database


Recommended Posts

I am working on a visitor counter. One way of storing the visitors in the database table is by getting the ip number. 

But I am not sure whether it is the right solution or not. I wonder if it is possible for a visitor to hide an ipnumber in a way that there is no ipnumber at all.


Is that possible?


What would you recommend to do to get a quite (real) unique visitor registration without users needing the possibilty to log in?  

Link to comment
Share on other sites

You can compare IPs, sure.


Alternatively, you can use Cookies


and use $_COOKIE, to check if its there.


If you were looking for something like 'visits' you could use sessions.


Does that work for you?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...