Welcome Guest, Not a member yet? Register   Sign In
input->ip_address() not returning full ip address
#1

[eluser]jeffpeck[/eluser]
If my ip address is "10.99.100.1, 123.123.123.123", CodeIgniter's Input->ip_address() function will actually parse this down to "123.123.123.123"

What this means is if there are 100 users all sharing one IP address because they using the same internet connection (i.e. on a router), they have no identity from one-another in situations of gathering statistics and other applications.

Is there a reason that CI purposely does this? Is this discussed somewhere on this forum?

Thanks.
#2

[eluser]n0xie[/eluser]
[quote author="jeffpeck" date="1269295733"]
What this means is if there are 100 users all sharing one IP address because they using the same internet connection (i.e. on a router),[/quote]
You just answered your own question.
#3

[eluser]jeffpeck[/eluser]
That is a disadvantage. It is better to know that

“10.99.100.1, 123.123.123.123”

is different from

“10.99.100.2, 123.123.123.123”

rather than view both as the same user.




Theme © iAndrew 2016 - Forum software by © MyBB