Domain Availability Checker

Share This Post

Rate this post
Instant PHP Domain Availability Checker Script

Check Domain Name Availability

<input id="searchBar" class="searchbar" type="text" name="domain" placeholder="Search domain name…" value="”>
<?php error_reporting(0); if(isset($_GET['domain'])){ $domain = $_GET['domain']; if ( gethostbyname($domain) != $domain ) { echo "

Domain Already Registered!

“; } else { echo “

Hurry, your domain is available!, you can register it.

“; } } ?>
body, h2, h3 { font-weight: normal; font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; color: #333; } body { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 90vh; } h2 { font-size: 26px; text-align: center; } h3 {font-size: 24px; } h3.success { color: #008000; text-align: center; } h3.fail { color: #ff0000; text-align: center; } .container { display: flex; flex-direction: row; justify-content: center; align-items: center; } .searchbar { padding: 6px 10px; width: 400px; max-width: 100%; border: none; margin-top: 1px; margin-right: 8px; font-size: 1em; border-bottom: #333 solid 2px; transition: 0.3s; } .searchbar::placeholder { font-size: 1em; } .searchbar:focus { outline: none; } .btn-search { cursor: pointer; text-decoration: none !important; font-size: 1.5em; padding-top: 5px; padding-bottom: 5px; background-color: transparent; border: none; outline: none; }

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Do You Want To Boost Your Business?

Drop us a line and keep in touch