Simple WHOIS PHP Script

by Marty on January 12, 2010

WHOIS is a protocol that is widely used for querying databases in order to determine the registrant or assignee of a domain name or IP address (range). In its simplest form, building a small PHP script to query the appropriate WHOIS server and outputting readable information is quite simple, yet complex solutions are usually required to extract full functionality from the WHOIS system.

Below is a very simple script to simply output the registrant of a domain name stored in WHOIS records. There’s minimal security, it doesn’t do much other than check the registrant, it’s poorly coded and it’s not very useful… but it will provide a list of servers and a function or two that may be of use.





Useful Links

>> Delegation details of top-level domains (iana.org)
>> WHOIS on WikiPedia.

Download: Simple WHOIS script
whois.zip
Version: 0.1

9.2 KiB
Details…

Share this page:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • FriendFeed
  • Identi.ca
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Bookmarks

If you liked this article, you may also like:

  1. Simple PHP file counter
  2. Print all files from and below a directory with PHP

{ 4 comments… read them below or add one }

MTyler July 8, 2010 at 8:26 am

This code is featured on our University website so it probably explains the spike in visitors.

ReplyReply

Reply

Terrance July 8, 2010 at 2:36 pm

How do I style this and put in Captcha?

ReplyReply

Reply

ToadFish July 9, 2010 at 8:28 pm

Works great & easy to customize into a real working script. You could release this with Captcha and make it a lot easier for those that don’t know how. Good job Marty.

ReplyReply

Reply

Simon Peter July 10, 2010 at 8:20 am

Simple. Easy. Works. Thank you so, so much.

ReplyReply

Reply

Leave a Comment

Previous post:

Next post:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes