Home
> Uncategorized > #Free #Whois #API in #PHP
#Free #Whois #API in #PHP
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
Comments (0)
Trackbacks (0)
Leave a comment
Trackback