Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Script whois
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Spooky
Development Team Member

New Zealand
320 Posts

Posted - 10 May 2002 :  05:05:18  Show Profile  Visit Spooky's Homepage
Is there a commercially available serverside component or script that can perform a lookup of a remote_addr within an asp script on an NT server?

ie - entering a page will allow the server to return the whois information to the script and allow you to process based on the info returned


===============
www.frontpagewebmaster.com

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 May 2002 :  05:09:16  Show Profile
something like this?

http://www.excaliburcs.com/ecswhois.asp

or this?

http://www.asphelp.com/ASPWhoIs/Default.htm

A quick search on google.com came up with a couple of them.

If you have ASP.NET on your server you can use this:

http://www.aspheute.com/english/20000825.asp
Go to Top of Page

Spooky
Development Team Member

New Zealand
320 Posts

Posted - 10 May 2002 :  06:21:50  Show Profile  Visit Spooky's Homepage
Cyscape have a nice one too I see... so many options :)

===============
www.frontpagewebmaster.com
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 10 May 2002 :  09:25:35  Show Profile
Here's one I found quite a while ago (btw, is the search here down? I was trying to search the archives and got a contact the system administrator error).


<%
if len(Request.Form("DOMAINNAME")) <> 0 then
Dim objXML, objXSL, objFSO
Dim strFile, strFileName, strXSL
Dim strURL, theString

' URL
strURL = "http://www.networksolutions.com/cgi-bin/whois/whois?STRING="&Request.Form("DOMAINNAME")&"&STRING=Search"

'Create Object
Set objXML = CreateObject("Microsoft.XMLHTTP")

' Get Code
objXML.Open "get", strURL, False
objXML.Send
xmlGet = objXML.responseText

'Search
if instr(1,xmlGet,"Your selection is available for registration",1) then
sHTML = "Domain not registered !!!"
Color = "green"
else
sHTML = "Domain registered !!!"
Color = "red"

'________________________________________________________________
my1String = "<pre>"
my2String = "</pre>"

strFind1 = instr(1,xmlGet,my1String,1)
strFinal1 = mid(xmlGet,strFind1,len(my1String))

strFind2 = instr(1,xmlGet,my2String,1)
strFinal2 = mid(xmlGet,strFind2,len(my2String))

RegisterName = mid(xmlGet,strFind1,(strFind2-strFind1))

end if

Set objXML = Nothing
end if
%>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align=center>
<form method="post" action="<%=request.servervariables("SCRIPT_NAME")%>" id=form1 name=form1>
<FONT color=#002e5b face=geneva,arial,sans-serif size=2>
<B>Domain Name </B></FONT>
<font color="#002e5b" face="geneva,arial,sans-serif" size="1">(orn: microsoft.com)</font>
<FONT color=#002e5b face=geneva,arial,sans-serif size=2><B>:<br>
<input type="text" name="DOMAINNAME" size="69"></B>
</FONT>
<hr>
<input type="Submit" value="Check Domain" id=Submit1 name=Submit1>
<INPUT type="button" value="Close" onclick="window.self.close()" id=button1 name=button1>
</form>
</td>
</tr>
</table>

<%if len(sHTML) <> 0 then%>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<hr>
<b><font color="#002e5b" face="geneva,arial,sans-serif" size="2">Query Result :</font></b>
</tr>
<tr>
<td width="100%" align="center">
<table border="1" cellspacing="1" cellpadding="1" align="center" bgcolor="#D6D6D6" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC" bordercolor="#FFFFFF">
<tr>
<td width="100%" align=center>
<FONT color=#002e5b face=geneva,arial,sans-serif size=3>--== <B><%=UCASE(Request.Form("DOMAINNAME"))%></b> ==--</font><BR><BR>
<FONT color=<%=Color%> face=geneva,arial,sans-serif size=2><B><%=sHTML%><BR></b></font>
</td>
</tr>
<TR>
<td width="100%" align=left>
<FONT color="#000000" face=geneva,arial,sans-serif size=2><p align=left>
<pre><%=RegisterName%></pre></p>
</font>
</td>
</tr>
</table>

</tr>
<tr>
<td width="100%" align="center">
<hr>
</tr>
<tr>
<td width="100%" align="center">
 
</tr>
</table>
<%end if%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">

</tr>
<tr>
<td width="100%" align="center">
<hr>
</tr>
<tr>
<td width="100%" align="center">
<font color="#002e5b" face="geneva,arial,sans-serif" size="1">Copyright © </font><font color="#002e5b" face="geneva,arial,sans-serif" size="1">2001.
Kadir Mustafa.<br>
<a href="mailto:kadirmustafa@hotmail.com">kadirmustafa@hotmail.com</a></font>
</tr>
</table>



======
Doug G
======
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 May 2002 :  13:46:39  Show Profile
quote:
Here's one I found quite a while ago (btw, is the search here down? I was trying to search the archives and got a contact the system administrator error).


The search probably just timed out. I think Huw added/changed the error that gets displayed so that someone doesn't just get a cryptic error message instead.
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 10 May 2002 :  19:19:45  Show Profile
Thanks

======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07