Every SEO on this plant have seen the error 404 page not found and it is their duty to fix them as soon as they find any 404 on website. But it’s not easy to work an fix 404’s if you have a big website. Today I am going to teach you about broken link checker tool which you can create for yourself. It’s absolutely free and doesn’t require any coding skills.
You will be surprised to hear that it’s absolutely free and does not require any special coding or programming skills. All you need is a google account. You can follow below instructions for creating your own Free Broken Link Checker.
Let’s not waste time in and start the steps to create your own broken link check tool.
- Open your google drive and click on create a spreadsheet.
- Once you create the google sheet, you can rename it according to your choice. For my convenience I named it 404 check sheet so that I can easily locate the tool inside my google drive.
- Once you click on app script option as mentioned in above screen shot, you will get the app script dashboard. You can paste the code given below
function getStatusCode(url){
var options = {
‘muteHttpExceptions’: true,
‘followRedirects’: false
};
var url_trimmed = url.trim();
var response = UrlFetchApp.fetch(url_trimmed, options);
return response.getResponseCode();
}
It will look like this
After pasting above code, go to deploy and select new deployment. Give description and hit on deploy.
After hitting deploy, you are all set to test and use your broken link checker tool.
In order to use your broken link check tool, go back to the google sheet which you have created. Usually it automatically open the existing sheet after hitting deploy but if you don’t get the sheet, you can open it manually.
Now you can 10000 URLs at once and see the URL status code. Wondering how?
Simply put all the URLs in Column A and put the formula =getStatusCode(A1) Remember to replace the row number if you have put the URL in any other row apart from row A1. For example:
As you can see that I have put in the get status code in column B and selected the column A where the links are available. It is giving me the URL status code. The best past of this tool is, you can put 10,000 URLs at once and get the status code at the same time.
Try it yourself and do let me know if you face any problem.
Continue exploring TheSEOGuy for more SEO Tips and Tricks along with Latest SEO Tips.
Related Blog Topics
Discover more from TheSEOGuy
Subscribe to get the latest posts sent to your email.