Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:49 pm EST

Geeklog Forums

Dirk , why geeklog session not recoerd real ip ?


Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
Dirk , why geeklog session not recoerd real ip ?

I have log in problem the reaseon is proxy server , in my country we can not acsess internet with out proxy server with any ISP provider ..

WE CAN'T AT ALL .

Now , when i chaeked session tabel i found tha field remote_ip recoerd the ISP SERVER IP NOT client IP server

So , how can i make geeklog recoerd the real ip ?
 Quote

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
If someone is accessing a web server through a proxy, there is no way to identify their real client IP. That information is not transmitted by the HTTP specification.

Thus, there is no solution. As far as your server is concerned (and hence the geeklog application) the connection has come from the proxy server. That proxy server is correctly hiding the IP address of the user on the other side.
 Quote

Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
Quote by THEMike: If someone is accessing a web server through a proxy, there is no way to identify their real client IP. That information is not transmitted by the HTTP specification.

Thus, there is no solution. As far as your server is concerned (and hence the geeklog application) the connection has come from the proxy server. That proxy server is correctly hiding the IP address of the user on the other side.


hi THEMike

no . not all the proxies hide the real IP , Some of them give the real ip , and i tested this with many ISP's ...

i GOT MY real IP ( client ip ) By this code :

Text Formatted Code


<?php
$ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
echo 'Your IP is: '.$ip; ?>


 



meanwhile , i am connecting thru proxy Give me real ip by the code you see it above , and when i am log in i browse Table: gl_sessions , and the tabel record the Public ISP ip . not even the server IP ADDRESS .


ANY advise ?


Remark : Thru The same connection I " can " Login to geeklog.net Site !!

heh Mr. Green , it weird !
 Quote

All times are EST. The time is now 07:49 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content