Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Raw vs. Header IP?  (Read 4671 times)

0 Members and 1 Guest are viewing this topic.

Graham J

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://xvi.com
Raw vs. Header IP?
« on: February 19, 2004, 03:57:28 pm »

Hey all,

I don't think this is a support question but excuse me if it is )

Anyway, an anonymous person left a nasty comment on a pic on my gallery. I notice in the comments table in the database there are two fields with IP addresses msg_raw_ip and msg_hdr_ip

My question is what's the difference between these? A request can only come from one host so this confuses me a bit. Any help is appreciated.

Thanks,
Graham
Logged

Nibbler

  • Guest
Raw vs. Header IP?
« Reply #1 on: February 19, 2004, 05:14:33 pm »

If the user has a simple internet connection, ie 1 computer + modem they will both be the same.

If they are different this means there is some kind of network involved. The raw ip is the ip address of the pc with the internet connection/webcache/proxy. It is used to get the data from the server to the network. Many users within the network could post from this same ip. The header ip is the address of the actual computer within the network, and is used to tell the network which pc actually sent the data.

The raw ip is obtained from the server variable $HTTP_SERVER_VARS['REMOTE_ADDR']

The header ip is obtained from the server variable $HTTP_SERVER_VARS['HTTP_CLIENT_IP'] or $HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']
Logged

Graham J

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://xvi.com
Raw vs. Header IP?
« Reply #2 on: February 19, 2004, 05:44:00 pm »

Excellent, thank you very much for your detailed and prompt reply. This will help me greatly )

Cheers,
Graham
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 19 queries.