Print Page | Close Window

Domain availability checker

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27813
Printed Date: 28 March 2026 at 4:38pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Domain availability checker
Posted By: haan
Subject: Domain availability checker
Date Posted: 10 September 2009 at 10:07am
hi..
I am doing domain name checker..
Below is the code of tutorial I get from internet.
But the result always return not available...
Who know what is the problems?

Thanks you...
[code]
<% Dim strURL: strURL = "http://www.7788.com"
Dim objXMLConn, strResponse

Set objXMLConn = Server.CreateObject("Microsoft.XMLHTTP")
objXMLConn.Open "get", strURL, False

'| Compensate for errors with this line.
On Error Resume Next
GetConnection.Send

strResponse = objXMLConn.getResponseHeader("Date")

If Not IsEmpty(strResponse) Then
   Response.write(strURL & " is available")
Else
   Response.write(strURL & " is not available")
End If

Set objXMLConn = Nothing %>
[code]
 
Between, to add a domain availability checker to my site is that very hard and required high skill of programming? Because I am fresh in programing, still under training..
Thanks for reply... Smilie



Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 September 2009 at 10:27am
Looks very similar to some code I wrote about 10 years ago.

Unfortunately this type of code rarely works now as it simply grabs a page from another website. Most websites that do these types of lookups block this type of traffic.

The domain that you are presently connectiong to http://www.7788.com doesn't appear to be a whois lookup page anyway so it would not work getting the result from that page.

You would be better off looking for a whois component that you can install on the server for doing this type of lookup.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: haan
Date Posted: 14 September 2009 at 3:25am
Thanks for your reply.. that mean to doing domain name checker, I have to install whois component to make it work?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net