Domain Availability


Checking Domain Availability

A few client’s were looking to expand their internet empire, hoping to automate a process to check domain availability. I put together the below script which would do just that for them. It uses the whois servers from, and makes a simple cURL GET request. The response is then parsed for the text, “appears to be available”, and the response is returned. Use as you see fit. The below is now being released under GPLv2. It is a quick, but not fool-proof way of using out-of-date whois servers.

The Code


The above code does the following:

  • Step 1: Supply domain and tld
  • Step 2: Make cURL request to
  • Step 3: Search response for ‘appears to be available’
  • Step 4: Return true or false

Disclaimer: has spam prevention detection enabled on their site. We are not affiliated with and do not encourage abuse of the above script.

One thought on “Domain Availability

  1. Torri Mastrocovi

    I believe everything posted made a lot of sense. However, what about this? what if you added a little content? I ain’t suggesting your content isn’t solid, however suppose you added a title that makes people desire more? I mean PHP: Domain Availability High On PHP is kinda vanilla. You could peek at Yahoo’s home page and note how they write article headlines to grab people interested. You might add a related video or a picture or two to get people interested about what you’ve written. In my opinion, it would bring your website a little bit more interesting.

Leave a Reply