How To Protect Your Domain Name Idea

By : @FrenchTechLead

A lot of websites offer the possibility to check for the availability of domain names, but do you trust them? did you know that you can check domains directly from your terminal?

~  ./ "google" "❌ not available" "❌ not available"  "❌ not available"
~  ./ "abcnews" "❌ not available" "❌ not available" : "✅ available"
🔥 🔥 🔥

There are a lot of websites offering the possibility to check for domain name availability, but are you sure that they won’t use your search for unwanted purposes? can’t they just buy your domain name idea and sell it for a higher price? For these reasons you should consider another way to check the availability of a domain name, fortunately, there is a way to do that straight from the Terminal of your Mac / Linux or Windows.

🔥 🔥 🔥

How To check for Domain Name Availability from the Terminal

  1. Create a file with the following content :
if [ "$#" == "0" ]; 
    echo "You need tu supply at least one argument!" 
    exit 1

DOMAINS=( '.com' '.org' '.fr')
while (( "$#" )); 
    for (( i=0;i<$ELEMENTS;i++)); 
        whois $1${DOMAINS[${i}]} | egrep -q '^No match|^NOT FOUND|^Not fo|AVAILABLE|^No Data Fou|has not been regi|No entri' 
	    if [ $? -eq 0 ]; 
            tput setaf 2; 
	        echo  "$1${DOMAINS[${i}]} : available"
            tput setaf 1; 
	        echo  "$1${DOMAINS[${i}]} : not available"
        tput setaf 0;
  1. Make the script executable :
chmod +x
  1. Execute the script :
./ google
🔥 🔥 🔥

Domain Name Availability Script in Action

Domain Name Availability Script in Action

This script will check in the .com / .org / .fr domains, you can edit line 9 (DOMAINS Array) in order to check for other domains as well.

🔥 🔥 🔥

Final Thoughts,

Domain names are critical choices for the success of any company, that’s why some domain names cost many millions of $, if you find an interesting name for your next business you need to make sure to protect it and buy it fast, for this reason, make sure not to share it with any third party service before acquiring it!

If you find this article interesting, make sure to hit the 👏 button below.

🔥 🔥 🔥

Support my work 🐶

If you like my content, you might want to buy me a ☕

"Buy Me A Coffee"
🔥 🔥 🔥

Stay in touch with us ❤️

Sign up for our newsletter to keep updated on what's new here on