473,560 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Broken Link Checker

Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm

TIA.
Jul 19 '05 #1
2 3074
To check the validity of a given url (say it is from query string or from
request).
Basically here what I want:
<%
sURL = Request("url")

if isValidURL(sURL ) then
response.write "This url is valid"
else
response.write "This url isn't valid"
end if

%>

Now, any ideas how to create this "isValidURL " function?

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:OB******** ******@TK2MSFTN GP10.phx.gbl...
What are you looking to do now?

Ray at home

--
Will trade ASP help for SQL Server help
"Danny" <da***@nospam.c om> wrote in message
news:ui******** *****@TK2MSFTNG P09.phx.gbl...
Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm
TIA.


Jul 19 '05 #2
Perfect.
This is what I want.

Thanks Curt.

"Curt_C [MVP]" <Software_AT_Da rkfalz.com> wrote in message
news:eJ******** ******@TK2MSFTN GP09.phx.gbl...
http://www.darkfalz.com/1046/

--
----------------------------------------------------------
Curt Christianson (Software_AT_Da rkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Danny" <da***@nospam.c om> wrote in message
news:ui******** *****@TK2MSFTNG P09.phx.gbl...
Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm
TIA.


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1987
by: saqib ali | last post by:
Hello All, I manage a rather large website, that has several hundred content managers. These content managers can create links at their will. I want to take a look a list of all the Links that are on our website. Is there a utility that can generate a list (text based) of all the URLs that are mentioned on our website? Thanks.
47
3197
by: Andy Dingley | last post by:
Assume an English language page, linking to a foreign history resource that's only available in a foreign language. Any suggestions on appropriate "best practice" markup, particularly regarding the scope of a lang attribute applied to a <a> element ? <p>Francisco de Miranda's <a href="http://www.simon-bolivar.org/bolivar/miranda_oci.html"...
28
3163
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site returning an error code, they are not sent to the remote site - why bother, it wouldn't work! Since I have over 1000 external links, this allows me...
8
2430
by: Steve | last post by:
Hi; I had a big link checking job to do and it has been years since I have done anything like that so I found a test page to use that I knew had bad links on it( a friends site ) and I decided to test the various free services out. I tried about 5 different link checkers on the test page I had , including Xenu and NetMechanic. I got 5...
8
1834
by: Steve | last post by:
Hi Guys; You have been giving me a lot of useful information in the other two threads. Thanks! Very interesting. Here is my situation. My friend is writing a book. He has 3100 citations, 1225 of which have URLs. He wants to Q/C the urls. He removed the http:// from the urls when he prepared his materials. I wrote a script that...
0
1017
by: durumdara | last post by:
Hi ! Sorry for non-pythonic subject, but if I not find good solution, I will write a routine for this in python... :-))) My mod_py site is growing quickly. It have many pages, many of them are dynamic. I want to check the links, and if possible, validate the html. I search freeware tools in the net, but I found only "HTML Link
13
2663
by: kolmogolov | last post by:
/* Hi, I have removed things irrelevant to reproducing the problem. What's wrong with my code? Thanks in advance for any hint! 1166425362 */ #include <stdio.h> #include <stdlib.h> #include <string.h>
6
10822
by: Neil | last post by:
Is there way to have control over the MS-Access spell checking (besides just launching it)? We want to tell it to check all records, but skip certain fields (or, alternatively, ONLY check certain fields). Is that possible? Alternatively, if that's not, we noticed that the spell checker skips fields that are disabled. So one could disable the...
3
4128
by: Giampaolo Rodola' | last post by:
Hi there, I would like to know if such function would be correct for verifying if a link is broken and/or circular. def isvalidlink(path): assert os.path.islink(path) try: os.stat(path) except os.error: return 1
0
7632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7552
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7841
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6191
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2047
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.