Smoky
12-15-2004, 10:39 PM
Hey...
When i came to HM i your client tracker picked me up like it should. But you first didnt allow me a web hosting account because you thought i had made serveral users. I believe it was Creator that accused me of this.. But the problem was that when your tracker recieves the information it stores the NTLs Cache Server address rather than the REAL clients address.
Below is coding to a daddy of trackers.. You might want to make some changes to it to suite your needs but this will return the correct address.
if (getenv("HTTP_CLIENT_IP"))
{
*$ip = getenv("HTTP_CLIENT_IP");
} *
else if(getenv("HTTP_X_FORWARDED_FOR"))
{
*$ip = getenv("HTTP_X_FORWARDED_FOR");
}
else if(getenv("REMOTE_ADDR"))
{
*$ip = getenv("REMOTE_ADDR");
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
}
$browser= $_SERVER['HTTP_USER_AGENT'];
$remote = gethostbyaddr($_SERVER['REMOTE_ADDR']).";".gethost byname($_SERVER['REMOTE_ADDR']);
$date * = date(d)."/".date(m)."/".date(y);
$time * = date(H).";".date(i).";".date(s);
$script = $_SERVER['SCRIPT_FILENAME'];
$log = "\n^".$date.":".$time.":".$ip.":".$remote.":".$bro wser.":".$script.":".$width.":".$height;
This will provide information about:
*Users Real IP Address, Rather Than There ISP Cache Server
*Date & Time
*Page Requested
*Browser Type
*ISP IP Adddress
*ISP Domain Name View
Let me know if this helps... Always like to help..! :D
Cheers
Mark
oooo.... By the way you still asking for moderaters i sore something on the main page. If so where do i go to ask..? Or can i ask you?
When i came to HM i your client tracker picked me up like it should. But you first didnt allow me a web hosting account because you thought i had made serveral users. I believe it was Creator that accused me of this.. But the problem was that when your tracker recieves the information it stores the NTLs Cache Server address rather than the REAL clients address.
Below is coding to a daddy of trackers.. You might want to make some changes to it to suite your needs but this will return the correct address.
if (getenv("HTTP_CLIENT_IP"))
{
*$ip = getenv("HTTP_CLIENT_IP");
} *
else if(getenv("HTTP_X_FORWARDED_FOR"))
{
*$ip = getenv("HTTP_X_FORWARDED_FOR");
}
else if(getenv("REMOTE_ADDR"))
{
*$ip = getenv("REMOTE_ADDR");
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
}
$browser= $_SERVER['HTTP_USER_AGENT'];
$remote = gethostbyaddr($_SERVER['REMOTE_ADDR']).";".gethost byname($_SERVER['REMOTE_ADDR']);
$date * = date(d)."/".date(m)."/".date(y);
$time * = date(H).";".date(i).";".date(s);
$script = $_SERVER['SCRIPT_FILENAME'];
$log = "\n^".$date.":".$time.":".$ip.":".$remote.":".$bro wser.":".$script.":".$width.":".$height;
This will provide information about:
*Users Real IP Address, Rather Than There ISP Cache Server
*Date & Time
*Page Requested
*Browser Type
*ISP IP Adddress
*ISP Domain Name View
Let me know if this helps... Always like to help..! :D
Cheers
Mark
oooo.... By the way you still asking for moderaters i sore something on the main page. If so where do i go to ask..? Or can i ask you?