Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-11, 22:11
BOD Member
 
Join Date: Aug 2011
Posts: 76
Default Hostname Grabbing

Hi, I don't know if this is possible. But, I would like to know fi anyone has a php script which can grab a hostname of a person. A lot of my visitors have dynamic ip addresses. So according to what I have learned. When tehy restart, if I have blocked their ip. They will still have access because their ip address will be different. Does anyone have a script which will get he hostname, which is permanent. Or a script which will solve the problem

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-11-11, 08:48
BOD Member
 
Join Date: Jul 2011
Posts: 59
Default

I guess no script available for this. All you have to do is look in to the php manual. You need to use the super global $_server.

Quote:
$_ SERVER['REMOTE_HOST']
Quote:
'REMOTE_HOST'
The host name from which the user is viewing the current page. The reverse dns lookup is based on the REMOTE_ADDR of the user.
But remember, they are not permanent either, they might be changed.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.