.AI Domain Checker
Note: .AI domains require a 2-year term at the time of registration.
&1");
if (!$whoisOutput) {
return "⚠️ WHOIS lookup failed";
}
if (preg_match('/No match|NOT FOUND|Status: free/i', $whoisOutput)) {
return "✅ Available";
} elseif (preg_match('/Status: active|Registered/i', $whoisOutput)) {
return "❌ Taken";
} else {
return "⚠️ Unable to determine status";
}
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$domain = trim($_POST["domainInput"]);
if (!empty($domain)) {
$fullDomain = htmlspecialchars($domain) . ".ai";
$availability = checkDomainAvailability($domain);
// Define pricing table (Dynadot fixed to $149.80)
$registrars = [
["name" => "Spaceship", "url" => "https://www.spaceship.com/domain-search/?query=", "price" => 137.96],
["name" => "Dynadot", "url" => "https://www.dynadot.com/domain/search?domain=", "price" => 149.80],
["name" => "Namecheap", "url" => "https://www.namecheap.com/domains/registration/results/?domain=", "price" => 159.96],
["name" => "Hostinger", "url" => "https://www.hostinger.com/tld/ai-domain?domain=", "price" => 179.98],
["name" => "GoDaddy", "url" => "https://www.godaddy.com/domainsearch/find?domainToCheck=", "price" => 194.98]
];
// Sort registrars by price
usort($registrars, function ($a, $b) {
return $a['price'] <=> $b['price'];
});
echo "$fullDomain is $availability
";
echo "⚠️ Following pricing is a static example. For current pricing, click on the Availability Link.
";
echo "
Registrar |
Two-year Pricing |
Availability Link |
";
foreach ($registrars as $registrar) {
echo "
{$registrar['name']} |
$" . number_format($registrar['price'], 2) . " |
Check |
";
}
echo "
";
} else {
echo "⚠️ Please enter a domain name.
";
}
}
?>