Web development | Build Website to Check Domain Name Availability

Step 1:-Front-end code containing page to Check Domain Name Availability

//create a file with name domain-check.php

<!doctype html>
<! — Code by HackMefu →
<head><title>Search Availability of Domain…</title>

<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src=”
<link rel=”stylesheet” href=”style.css”>



<div class=”container”>
<div class=”row”>
<div class=”col-md-6">
<h3>Check Domain Name Availability</h3>
<form action=”” method=”GET”>
<div id=”custom-search-input”>
<div class=”input-group col-md-24" >
<input type=”text” name=”domain” class=”form-control input-lg” placeholder=”Example.com or Example.in etc.” />
<span class=”input-group-btn”>
<button type=”submit” class=”glyphicon glyphicon-search”></button>

$domain = $_GET[‘domain’];
$godaddycheck = ‘
$namecomcheck = ‘
$registercomcheck = ‘
if ( gethostbyname($domain) != $domain ) {
echo “<h1>Already Registered!</h1>”;
else {
echo “<h3>$domain</h3><h2><br>Not Taken, you can register it.



Step 2:-Back-end code containing style-sheet to style website

//create a file with name style.css

/** code by HackMeFu **/
width: 80%;
position: absolute;
top: 30%;
left: 30%;

padding: 3px;
border: solid 1px #E4E4E4;
border-radius: 6px;
background-color: #fff;
display: inline-block;
#custom-search-input input{
border: 0;
box-shadow: none;
#custom-search-input button{
margin: 2px 0 0 0;
background: none;
box-shadow: none;
border: 0;
color: #666666;
padding: 0 8px 0 10px;
border-left: solid 1px #ccc;
#custom-search-input button:hover{
border: 0;
box-shadow: none;
border-left: solid 1px #ccc;
#custom-search-input .glyphicon-search{
font-size: 23px;

Step 3Host Website using xampp on local system and CPanel on live website and Getting Output




InfoSec Writer/Instructor/Custom Course Creator Bug Bounty Hunter Penetration Tester

Love podcasts or audiobooks? Learn on the go with our new app.

Final Project: React/Redux

Writing a SQL Operations Studio Extension in 15 minutes

Resolvers In Angular to Pre-Load data

Resolvers in Angular to Pre-Load data

The Math Behind Stars Rendered with JavaScript

Don’t Over-React, Don’t Be Redux-ulous

Getting Started with React Native Development on Windows

Step-by-Step: How to dockerize and deploy a Node.js, Mongo app to Amazon ECS using AWS EC2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akash Ranjan Patel

Akash Ranjan Patel

InfoSec Writer/Instructor/Custom Course Creator Bug Bounty Hunter Penetration Tester

More from Medium

Dermstore Clone Project

CS371g Spring 2022: Sang Pham

An Essay on UI

Case Study 2: How Can A Wellness Technology Company Play It Smart?