Domain Sorgusu
<% Option Explicit %>Â
<%Â Â
 Â
Â
Response.Buffer = False Â
Server.ScriptTimeout = 90Â
Private Function whoisResult(whoisURL, strMethod, strCheckString)Â
     Â
    Dim objXMLHTTP               Â
    Dim strWhoisResultString     Â
     Â
    Set objXMLHTTP = Server.CreateObject(”Microsoft.XMLHTTP” )Â
     Â
     Â
     Â
       objXMLHTTP.Open strMethod, whoisURL, FalseÂ
        Â
        Â
       objXMLHTTP.SEndÂ
        Â
        Â
       strWhoisResultString = objXMLHTTP.ResponseTextÂ
        Â
        Â
       If InStr(1,strWhoisResultString,strCheckString,vbTextCompare) ThenÂ
             Â
             Â
            whoisResult = “Bo?ta” Â
             Â
      Â
       ElseIf InStr(1, strWhoisResultString, “Error” , vbTextCompare) ThenÂ
             Â
             Â
            whoisResult = “Hata!” Â
             Â
        ElseÂ
             Â
             whoisResult = “Dolu” Â
       End IfÂ
      Â
        Set objXMLHTTP = NothingÂ
        Â
End FunctionÂ
Private Function characterStrip(strTextInput)Â
    Dim intLoopCounter       Â
     Â
    For intLoopCounter = 0 To 44Â
         strTextInput = Replace(strTextInput, Chr(intLoopCounter), “” , 1, -1, 0) Â
    NextÂ
     Â
    For intLoopCounter = 46 To 47Â
         strTextInput = Replace(strTextInput, Chr(intLoopCounter), “” , 1, -1, 0) Â
    NextÂ
     Â
    For intLoopCounter = 58 To 96Â
         strTextInput = Replace(strTextInput, Chr(intLoopCounter), “” , 1, -1, 0) Â
    NextÂ
     Â
    For intLoopCounter = 123 To 255Â
         strTextInput = Replace(strTextInput, Chr(intLoopCounter), “” , 1, -1, 0) Â
    NextÂ
     Â
    characterStrip = strTextInputÂ
     Â
End FunctionÂ
Dim strDomainName      Â
strDomainName = Trim(Request.QueryString(”domain” ))Â
 Â
If strDomainName <> “” ThenÂ
     Â
      Â
    strDomainName = LCase(strDomainName)Â
     Â
      Â
    strDomainName = Replace(strDomainName, “http://” , “” , 1, -1, 1)Â
    strDomainName = Replace(strDomainName, “www.” , “” , 1, -1, 1)Â
     Â
      Â
 Â
strDomainName = Replace(strDomainName, “.com” , “” , 1, -1, 1)Â
strDomainName = Replace(strDomainName, “.net” , “” , 1, -1, 1)Â
strDomainName = Replace(strDomainName, “.org” , “” , 1, -1, 1)Â
      Â
    If Left(strDomainName, 1) = “-” Then strDomainName = Mid(strDomainName, 2, Len(strDomainName))Â
    If Right(strDomainName, 1) = “-” Then strDomainName = Mid(strDomainName, 1, Len(strDomainName)-1)Â
      Â
    strDomainName = Replace(strDomainName, “–” , “-” , 1, -1, 1)Â
     Â
 Â
    strDomainName = characterStrip(strDomainName)Â
End IfÂ
%>Â
<html>Â
<head>Â
<title></title>Â
 Â
</head>Â
<body bgcolor=”#FFFFFF” text=”#000000″ link=”#0000CC” vlink=”#0000CC” alink=”#FF0000″>Â
 Â
<form strmethod=”get” name=”frmDomainCheck” action=”whois.asp”>Â
<table cellpadding=”0″ cellspacing=”0″ width=”300″ border=”0″ align=”center”>Â
  Â
 <tr> Â
  <td class=”normal” height=”2″ width=”300″ align=”center”> Â
   <input type=”TEXT” name=”domain” maxlength=”35″ size=”20″ value=”<%=strDomainName %>”>Â
   <input type=”submit” value=”Ara” name=”submit”>Â
  </td>Â
 </tr>Â
 Â
</table>Â
</form>Â
<center>Â Â
<%Â Â
If strDomainName <> “” ThenÂ
      %>Â
<table width=”300″ border=”0″ cellspacing=”1″ cellpadding=”3″>Â
 <tr bgcolor=”#CCCCCC”> Â
  <td align=”left” width=”150″>Domain Ysmi</td>Â
  <td width=”150″>Durum</td>Â
 </tr>Â
</table>Â
<table width=”300″ border=”0″ cellspacing=”1″ cellpadding=”3″>Â
 <tr bgcolor=”#FFFFF0″> Â
  <td align=”left” width=”150″><% Response.Write(strDomainName & “.net” ) %></td>Â
<td width=”150″><% Response.Write(whoisResult(”http://www-whois.internic.net/cgi/whois?whois_nic=” &strDomainName&”.net&type=domain” , “GET” , “No match” )) %></td>Â
 </tr>Â
</table>Â
<table width=”300″ border=”0″ cellspacing=”1″ cellpadding=”3″>Â
 <tr bgcolor=”#FFFFF0″> Â
  <td align=”left” width=”150″><% Response.Write(strDomainName & “.com” ) %></td>Â
<td width=”150″><% Response.Write(whoisResult(”http://www-whois.internic.net/cgi/whois?whois_nic=” &strDomainName&”.com&type=domain” , “GET” , “No match” )) %></td>Â
 </tr>Â
</table>Â
<table width=”300″ border=”0″ cellspacing=”1″ cellpadding=”3″>Â
 <tr bgcolor=”#FFFFF0″> Â
  <td align=”left” width=”150″><% Response.Write(strDomainName & “.org” ) %></td>Â
<td width=”150″><% Response.Write(whoisResult(”http://www-whois.internic.net/cgi/whois?whois_nic=” &strDomainName&”.org&type=domain” , “GET” , “No match” )) %></td>Â
 </tr>Â
</table>Â
<br><br>Â
<%Â
End IfÂ
%>Â
 Â
</body>Â
</html>