php - HTTP_X_FORWARDED_FOR gives two part IP? -


i using load balancer in front of web server , wanted real user's ip instead of 1 coming load balancer. found using http_x_forwarded_for trick. however, i'm not expert when comes networking , can't figure out why ip address in 2 parts? one's i've been logging http_x_forwarded_for have following format:

xxx.xxx.xxx.xxx, xxx.xx. 

for example,

66.249.75.48, 173.24.  

i'm sure rather basic, it's not in field had turn guys clarification. in advance!

x-forwarded-for header contains list of ips comma separating them. each time request goes through proxy ip address of machine sending proxy supposed appended header list.

in case appears second ip address has been truncated. load balancer or web server assuming contained 1 ip , had short maximum length.

note: there may have been more 2 ips in original , client have forged or first part see. need bug fixed.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -