Hope you are doing fine.
BLC 2.0 checks the broken links by crawling a site using an external action performed from our API servers (Instead or checking from within the site). Since a localhost setup is not available publicly, the API won’t be able to reach the site and perform a scan.
In order to perform the scan on the site, we’d recommend setting up a staging site, so it can be accessed by the BLC 2.0 crawler.
Hope this info helps
Thanks for the quick response. I should have been more clear, the site is not a localhost setup, it’s a public site that has been live for years. So I don’t understand why it is having this error message.
If it helps my site is findingtheuniverse.com. It’s possible a security configuration is blocking access, but it’s odd because it scans the dashboard seems to be scanning the links. It just never seems to complete and I get the error message about localhost.
I updated my site security plugin to whitelist the IP address as outlined in the troubleshooting guide. However, the same problem occurs, the hub seems to get to the end of scanning, and then the error message appears on the BLC page of my WordPress dashboard “Scan could not be started because it seems you are on localhost. Broken Links Checker API can not reach sites on local hosts”
It seems the site uses Cloudflare, could you please confirm the IP you whitelisted is :
And could you also make sure the User Agent is whitelisted as well? Even though the IP has been whitelisted, UA may still be blocked. You can follow these steps:
- First, log in to the Cloudflare account and select the Security tab from the left menu.
- Next , select WAF go to the Firewall rules tab.
- Click on Create firewall Rule.
- Then, give a name to the Firewall rule.
- Set Field to User Agent, Equals as the Operator, and Value to:
WPMU DEV Broken Link Checker Spider
- Select the Allow option
- To complete the setup, click on Deploy in the bottom-right corner.
Let know if the crawl is successful after applying this settings.