Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>web forms proxy servers

web forms proxy servers

graziano
11-23-2004, 12:49 PM
Hello

is there a good and efficient way to check if a visitor is behind a proxy servers using js ? Some time ago I have seen a javascript which
was able to show on browser the real ip of the visitor.
How to do ?

I am using php code below but it's not good using https .


if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$proxy3="\nHTTP_X_FORWARDED_FOR DETECTED : the user should be behind a proxy server";

}
else
{
$proxy3="";
}

if (isset($_SERVER['HTTP_PROXY_CONNECTION']))
{
$proxy4="\nHTTP_PROXY_CONNECTION DETECTED : the user should be behind a proxy server";

}
else
{
$proxy4="";
}

if (isset($_SERVER['HTTP_VIA'])) {
$proxy5="\nHTTP_VIA DETECTED : the user should be behind a proxy server";
}
else
{
$proxy5="";
}

if (isset($_SERVER['HTTP_PRAGMA'])) {
$pragma=isset($_SERVER['HTTP_PRAGMA']);
$proxy6="\nHTTP_PRAGMA : (pragma=$pragma) the user should be behind a proxy server";
}
else
{
$proxy6="";
}


if (getenv(HTTP_X_FORWARDED_FOR)){
$ip=getenv(HTTP_X_FORWARDED_FOR);
$proxy= "\nHTTP_X_FORWARDED_FOR DETECTED the user should be behind a proxy server";


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Copy link text to clipboard
Problem with htmlarea
Random URL script help needed
Help with keystroke
possible to pass a form field name to a function, like this.value?
List/menu link values
Need HELP on combo boxes

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics