BOOK THIS SPACE FOR AD
ARTICLE ADHello
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
Let start’s
## Requirements
BLCnpmFirst 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 -gNow after the installation use this command to verify and see the help menu
blc -hIt 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 sequenceIt will save all urls in broken-lin.txt
after the tool finish his work open file using this command
cat broken-link.txt | grep BROKENthis 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.txtthis will find only extenal link not internal
and for opening you can open it using the same command
cat broken-link.txt | grep BROKENand 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.txtIf you find any please recheck as some time there are few false positive
Thank you!!