Hello @philesq ,
I’ve checked the link from your screenshot and it does throw 503 error https://monosnap.com/file/i51Tw3cPds3yGgEZcm8mMANf8pLF9c
You might want to check WordFence settings.
kind regards,
Kasia
I use Wordfence to restrict website visitors to the U.S. But the link is not broken. The site is working normally in the U.S.
Hi @philesq,
Could you please try this snippet which changes the User agent and see whether that helps?
<?php
add_filter( 'broken-link-checker-curl-options', 'wpmudev_set_headers_ua_data', 10, 3 );
function wpmudev_set_headers_ua_data( $curl_options ) {
$curl_options = array( CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.34 Safari/537.36' );
return $curl_options;
}
You can implement the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Kind Regards,
Nithin
I started using this plugin today and I had the same problem, I got ten 403 forbidden links but they are working.
Screenshot: https://prnt.sc/fIxNzaecvrVz
(Link with NSFW content)
I already have an mu-plugins folder. What should I name the file with the code?
I have been using Broken Link Checker for many years, on approx 20 websites, and never had a problem with it until recently. It now finds False 403 and 503 errors on all of them. Links to my own sites are showing errors. On one of my sites, I saw links to three of my websites showing a 503 error. I clicked Recheck on all three, but only one changed to 200. You can see a screenshot at https://prnt.sc/6M_tKc3SKRVS
@divvy Could you please open a new ticket with us, so that we could assist you further regarding this?
URL to open a ticket:
https://ww.wp.xz.cn/support/plugin/broken-link-checker/#new-topic-0
Trying to have a conversation on an existing ticket will only cause more miscommunication.
I already have an mu-plugins folder. What should I name the file with the code?
@philesq You are basically creating a PHP file, so you could give any unique file name. For example, blc-fix.php etc
Could you also try reducing the resources in the plugin side ie under Settings > Link Checker > Advanced. Reduce the percentage for Target resource usage.
Once done, please clear the cache in your server and then try re-checking the links again.
Please do let us know how that goes.
Kind Regards,
Nithin
Hi @philesq,
Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.
Best Regards
Nithin