BrainPill Posted February 24, 2019 Share Posted February 24, 2019 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 More sharing options...
Funce Posted February 24, 2019 Share Posted February 24, 2019 You can compare IPs, sure. http://itman.in/en/how-to-get-client-ip-address-in-php/ Alternatively, you can use Cookies http://php.net/manual/en/function.setcookie.php 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 More sharing options...
justsomeguy Posted February 25, 2019 Share Posted February 25, 2019 People can't hide their IP, but multiple people might use the same IP. One person might also change their IP. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now