simple whois lookup Api script in php

In this tutorial i will explain a very useful PHP script to get the domain’s whois data. Here’s a great and simple whois lookup Api script in php, I’ve used it in my another web application.

It is 100% free for personal & commercial uses, and just has a couple functions you can call in your next projects. It’s Automatically lookup for secondary whois server and In-built IP and domain validator to get the domain owner details from whois database.

whois data

Live Demo Download Script

Whois Class file

Create whois.php file and copy paste below PHP code to get whois data for any domain. This script supports the lots of TLD (Top Level Domain) like .com,.net,.in,.org,.info and much more.

Index.php Page

Create index.php and copy paste below code to get whois data.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Article Tags: , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.