l0ve2hat3 Posted July 9, 2008 Share Posted July 9, 2008 Is there any way via I can retrive the clients computer name? Kind of like $_SERVER['REMOTE_ADDR'] but the computer name instead. If its not possible via PHP can you tell me any other ways? Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/ Share on other sites More sharing options...
gigas10 Posted July 9, 2008 Share Posted July 9, 2008 it can be done with vb, but it is impossible to do with php sryz Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584972 Share on other sites More sharing options...
bluejay002 Posted July 9, 2008 Share Posted July 9, 2008 besides... computer name is never really reliable... multiple computers may have the same name. Also, once global IPs are set... you cannot fetch the local machine IP address. Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584975 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 How does the bank websites remember the computer you are on? Its not by IP address. Is there any way to distinguish different computers that have the same ip? Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584977 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 ah is there any way to get the computers mac address? Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584980 Share on other sites More sharing options...
.josh Posted July 9, 2008 Share Posted July 9, 2008 more than likely they have a cookie saved on the computer that includes info like ip address or maybe you entered in somewhere on their site that it's your "home" computer, so when you login from somewhere else, even though your name/pw is correct, the cookie isn't there so it knows you aren't at the same computer. Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584985 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 no it doesnt use cookies. does any one use chase??? Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584986 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 also look at this https://protect.login.yahoo.com/login/set_pref?.intl=us&.src=ym&.u=3t1es2p47844c&.partner=&pkg=&stepid=&.pd=c=&.crumb=czozMjoiYTQ1NzRmMjY3ZjhmMDlmNGVlMmIwMjBjZDFiNGZkNjEiOw--&.done=https%3A%2F%2Flogin.yahoo.com%2Fconfig%2Fmail%3F.intl%3Dus nevermind this uses Flash Shared Objects (.sol) Aka. Flash Cookie and XML file in Userdata folder Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-584990 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 any one else? Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-585005 Share on other sites More sharing options...
Guest Xanza Posted July 9, 2008 Share Posted July 9, 2008 This is not possible to accomplish using a normal web page. It would be a major breach of privacy if this were possible -- not to mention that it is illegal to collect personal information (that which uniquely identifies an individual computer) without the visitor's knowledge. Several companies have gotten into trouble for this. Of course, I realize you state special circumstances. However, that does not change the facts. You'll just have to settle for asking the visitor to provide this information voluntarily. Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-585009 Share on other sites More sharing options...
l0ve2hat3 Posted July 9, 2008 Author Share Posted July 9, 2008 the users that will register will have to agree to the TOS.... so your saying there is no possible way to idendify a computer on the web? so i can go online and do something illegal and the fbi will not know it came from one specific computer??? i find this hard to believe. it has to be possible. Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-585012 Share on other sites More sharing options...
Guest Xanza Posted July 9, 2008 Share Posted July 9, 2008 Sure it's possible, you can do it with ASP.NET... As for PHP, I'm not too sure... I'm not horribly keept-up with windows commands, but if you were able to view the computer name via the command prompt by doing: ipconfig/all hostname or something, then you would be able to do something like this: <?php $computer_name = `ipconfig/all hostname`; return $computer_name; ?> But even if you were able to do this, it would cause a conflict for your Linux and Mac Users. Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-585016 Share on other sites More sharing options...
kenrbnsn Posted July 9, 2008 Share Posted July 9, 2008 If the user's computer has a static IP address and if that IP address is mapped to a computer name via DNS, then you can get it (sometimes), if not the best you might be able to do is get the IP address. The following code snippet will get either the name or the IP address: <?php if ($_SERVER["HTTP_X_FORWARDED_FOR"] != ""){ $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; $host = @gethostbyaddr($_SERVER["HTTP_X_FORWARDED_FOR"]); }else{ $IP = $_SERVER["REMOTE_ADDR"]; $host = @gethostbyaddr($_SERVER["REMOTE_ADDR"]); } ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/113836-retrive-clients-computer-name/#findComment-585021 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.