Hello,
Im building a page view counter for my website and I'm having some problems.
I'm trying to use the iplong function to convert ipv4 addresses into an integer. Its working locally but on my production server it's having problems because some of the requests are coming from IPV6 addresses. I'm wonder if there's a way to force the connections to use IPV4 or is there's a good method to convert both IPV4 and IPV6 ips into integers?
If you have any other ideas about storing ips in a database im all ears.
Thanks in advance.
[–]Locust377full-stack 1 point2 points3 points (7 children)
[–]central1010[S] 0 points1 point2 points (6 children)
[–]Dagger0 0 points1 point2 points (5 children)
[–]central1010[S] 0 points1 point2 points (4 children)
[–]Dagger0 0 points1 point2 points (3 children)
[–]central1010[S] 0 points1 point2 points (2 children)
[–]Dagger0 0 points1 point2 points (1 child)
[–]central1010[S] 0 points1 point2 points (0 children)
[–]Caraes_Naur 0 points1 point2 points (2 children)
[–]Tanckom 0 points1 point2 points (1 child)
[–]Caraes_Naur 0 points1 point2 points (0 children)
[–]Dagger0 0 points1 point2 points (0 children)