Hi,
I know how to get remote user IP and OS/Browser,
Is there any way to get Host also ?
Thanks
Hi,
I know how to get remote user IP and OS/Browser,
Is there any way to get Host also ?
Thanks
thanks a lot!
I was missing the second url!
Do you know if a function like this:
$ip = $_SERVER['REMOTE_ADDR'];
$fullhost = gethostbyaddr($ip);
$host = preg_replace("/[.]+./", "*.", $fullhost);
used about 3.000 times a day could be a problem for the server or the php script ?
thanks
Well I try to avoid host look ups they tend to be quite slow is there any reason you wish to do this? If its for administrative purposes then this shouldnt be a problem however if your doing this to add to database or store it for every user somehow Id try to avoid it and only store the IP and use the look up later if needed.
well, I am looking for a way to take some users away from my chat room. They are able to bypass cookie or IP filters, so I was testing if I can do somthing with hosts...
May be that some of most annoying ones are using proxyes, so I could eventually detect them or exlude proxy users..
I don't find other solutions
Thanks