Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > how to get the true ip address when i use proxy?

Reply
Thread Tools

how to get the true ip address when i use proxy?

 
 
Fayland
Guest
Posts: n/a
 
      09-23-2004
when i use the HTTP proxy,how can i get my true ip address if it's possible?

the code is follows:
------------
foreach ('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'X_CLIENT_IP',
'REMOTE_ADDR', 'HTTP_VIA') {
print "$_ => $ENV{$_}\n";
}
------------
the output(proxy is 80.59.189.2:
------------
HTTP_X_FORWARDED_FOR => 80.59.189.28
HTTP_CLIENT_IP => 80.59.189.28
X_CLIENT_IP =>
REMOTE_ADDR => 80.58.3.235
HTTP_VIA => HTTP/1.0 proxy[AC1E0B46] (Traffic-Server/5.5.1-59096 [uSc ])
------------
Thanks in advance.



 
Reply With Quote
 
 
 
 
Fayland
Guest
Posts: n/a
 
      09-23-2004
sorry for any interruption.
I search this group and find some answers.

"Fayland" <(E-Mail Removed)> дʼ news:ciu58h$eou$(E-Mail Removed)...
> when i use the HTTP proxy,how can i get my true ip address if it's

possible?
>
> the code is follows:
> ------------
> foreach ('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'X_CLIENT_IP',
> 'REMOTE_ADDR', 'HTTP_VIA') {
> print "$_ => $ENV{$_}\n";
> }
> ------------
> the output(proxy is 80.59.189.2:
> ------------
> HTTP_X_FORWARDED_FOR => 80.59.189.28
> HTTP_CLIENT_IP => 80.59.189.28
> X_CLIENT_IP =>
> REMOTE_ADDR => 80.58.3.235
> HTTP_VIA => HTTP/1.0 proxy[AC1E0B46] (Traffic-Server/5.5.1-59096 [uSc ])
> ------------
> Thanks in advance.
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
[False,True] and [True,True] --> [True, True]????? bdb112 Python 45 04-29-2009 02:35 AM
TurboGears /.-ed, >new == True< or >new == "True"< Andy Leszczynski Python 4 10-13-2005 06:56 AM
C and C++ are interoperable languages? True or Not True? Chip C++ 6 01-08-2005 11:10 PM
Does true ^ true return false? Siemel Naran C++ 19 06-18-2004 11:06 AM



Advertisments