Easiest way to find Broken links in a website

1 month ago 24
BOOK THIS SPACE FOR AD
ARTICLE AD

JEETPAL

Hello

Today I will tell you How to find broken link in target website as my current broken link is triaged as High severity and think it is easy to find

Triaged at high

Let start’s

## Requirements

BLCnpm

First let’s install the tool

Using npm

> If you don’t have NPM in you device used this command to install

npm install -g npmNow let’s download the Broken-link-checker using NPMnpm install broken-link-checker -g

Now after the installation use this command to verify and see the help menu

blc -h

It will list the help menu

Now let’s use it

For target we use shopify.com(not recommanded)

blc https://shopify.com -ro > broken-link.txt-ro : This option will crawl the webpage and check each url in a sequence

It will save all urls in broken-lin.txt

after the tool finish his work open file using this command

cat broken-link.txt | grep BROKEN

this will only show you broken link only but many time internal link like the website itself link company doesn’t take as vulnerable as the link is under control by the subdomain of the main domain itself so for this we need to -i so it will not check any broken internal link and check only external links

blc https://shopify.com -ro -i > broken-link.txt

this will find only extenal link not internal

and for opening you can open it using the same command

cat broken-link.txt | grep BROKEN

and if you wish for remove external links and need only internal so you can use this command

blc https://shopify.com -ro -e > broken-link.txt

If you find any please recheck as some time there are few false positive

Thank you!!

Read Entire Article