Home > Uncategorized > #Free #Whois #API in #PHP

#Free #Whois #API in #PHP

whois-checker

Yes, I just discovered you can write your own WHOIS API in PHP in two lines of code;

$output = shell_exec(“whois ” . $_GET[“domain”]);
echo “$output”;

– Really easy.

So, you can call /whois.php?domain=google.com

Whois data is not very standardised, so be prepared to do a bit of parsing before you get what you need.

 

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment