try const response = await fetch('/api/whois.php', method: 'POST', headers: 'Content-Type': 'application/json', body: JSON.stringify( domain: domain ) );
// Raw Data rawData.textContent = data.raw;
<div class="search-box"> <input type="text" id="domainInput" placeholder="bijv. google.nl" value=""> <button onclick="performLookup()">Zoeken</button> </div>
// Logic for .nl domains (SIDN specific) if ($tld === 'nl') // SIDN returns specific strings for available domains if (strpos($raw, 'is free') !== false) $data['is_available'] = true; else // Extract details using regex $data['registrar'] = $this->extractMatch('/Registrar:\s*(.*)/i', $raw); $data['created_at'] = $this->extractMatch('/Date Created:\s*(.*)/i', $raw); // SIDN uses specific formats, may need adjustment based on actual output
protected $whoisServers = [ 'nl' => 'whois.sidn.nl', 'com' => 'whois.verisign-grs.com', 'net' => 'whois.verisign-grs.com', 'org' => 'whois.pir.org', 'io' => 'whois.nic.io', // Add more TLDs as needed ];
preg_match($pattern, $subject, $matches); return $matches[1] ?? null;
namespace App\Services;
Weak – privacy regulations win here.
return preg_match('/^(?!-)(?:(?:[a-zA-Z\d][a-zA-Z\d-]0,61)?[a-zA-Z\d]\.)1,2(?:[a-zA-Z]2,)$/', $domain);
try const response = await fetch('/api/whois.php', method: 'POST', headers: 'Content-Type': 'application/json', body: JSON.stringify( domain: domain ) );
// Raw Data rawData.textContent = data.raw;
<div class="search-box"> <input type="text" id="domainInput" placeholder="bijv. google.nl" value=""> <button onclick="performLookup()">Zoeken</button> </div> zolivo.nl whois
// Logic for .nl domains (SIDN specific) if ($tld === 'nl') // SIDN returns specific strings for available domains if (strpos($raw, 'is free') !== false) $data['is_available'] = true; else // Extract details using regex $data['registrar'] = $this->extractMatch('/Registrar:\s*(.*)/i', $raw); $data['created_at'] = $this->extractMatch('/Date Created:\s*(.*)/i', $raw); // SIDN uses specific formats, may need adjustment based on actual output
protected $whoisServers = [ 'nl' => 'whois.sidn.nl', 'com' => 'whois.verisign-grs.com', 'net' => 'whois.verisign-grs.com', 'org' => 'whois.pir.org', 'io' => 'whois.nic.io', // Add more TLDs as needed ]; try const response = await fetch('/api/whois
preg_match($pattern, $subject, $matches); return $matches[1] ?? null;
namespace App\Services;
Weak – privacy regulations win here.
return preg_match('/^(?!-)(?:(?:[a-zA-Z\d][a-zA-Z\d-]0,61)?[a-zA-Z\d]\.)1,2(?:[a-zA-Z]2,)$/', $domain); return preg_match('/^(
Get access to your Orders, Wishlist and Recommendations.
Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.