|
|
|
|
Reciprocal Link Checker script
Download the code
<%
Dim BlnLinkBack, sReciprocalURL, sReciprocalLinkURLText
BlnLinkBack=False
sLinkBackURL="www.codefixer.com"
sReciprocalURL= "www.codefixer.com/tutorials/index.asp"
If sReciprocalURL <> "" Then
If Left(LCase(sReciprocalURL),7)<>"http://" Then
sReciprocalURL="http://" & sReciprocalURL
End If
On Error Resume Next
Dim objXMLHTTP, sHTML
Set objXMLHTTP = Server.CreateObject ("Microsoft.XMLHTTP")
objXMLHTTP.open "GET", sReciprocalURL, False
objXMLHTTP.send
sHTML=objXMLHTTP.statusText
If Err.number=0 OR sHTML="OK" Then
sReciprocalLinkURLText= objXMLHTTP.ResponseText
If InStr(1,sReciprocalLinkURLText, sLinkBackURL) > 0 Then
Blnlinkback=True
Else
Blnlinkback=False
End If
Else
Blnlinkback=False
End If
Set objXMLHTTP=Nothing
Else
linkback=False
End If
If Blnlinkback=False Then
response.write "No reciprocal link given. "
Else
response.write "Yes there is a reciprocal link given. "
End If
%>
If you have any code snippets to share with full credit given then send an email to Codesnippets - You'll receive full credit and a link back to your site.
Site developed by Michael Wall - Web Design Belfast N.Ireland.
Copyright © 2000-2008. All rights reserved.
|
|
|
|
|