Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Checking URL links

by oaklander (Acolyte)
on Dec 28, 2001 at 17:04 UTC ( #134867=perlquestion: print w/replies, xml ) Need Help??

oaklander has asked for the wisdom of the Perl Monks concerning the following question:

Is there any script that is available to check all web links in a directory. I have many html files in one directory and need to check if all the URL links are valid. The links consist of absolute and relative paths.

Replies are listed 'Best First'.
Re: Checking URL links
by rob_au (Abbot) on Dec 28, 2001 at 17:08 UTC
    There are countless such scripts available from sites such as (including this one, this one and this one).

    On this site, I simply typed Link Checker into the search box and sure enough, an excellent example from tachyon was found here - In addition to checking href links, this script also checks img links and mailto links (for RFC822 compliance).


    perl -e 's&&[@.]/&&s&.com.&_&&&print'

Re: Checking URL links
by newbie00 (Beadle) on Dec 28, 2001 at 23:51 UTC
    Here is another source for checking links. It is located at WebTester and it is easy to install and use. It does require either Telnet or SSH.

    Hope this helps.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://134867]
Approved by root
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-12-08 23:40 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (37 votes). Check out past polls.