• Resolved PhilEsq

    (@philesq)


    Broken Link Checker started showing numerous 403 and 503 errors to links that are working. This happens on two different hosting companies and does not involve links to websites like Amazon. This screen capture shows a link to one of my websites that has not had any problems https://prnt.sc/w8sG0a0NOgjx

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    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

    Thread Starter PhilEsq

    (@philesq)

    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.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    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)

    Thread Starter PhilEsq

    (@philesq)

    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

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    @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

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    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

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘False 403 and 503 errors’ is closed to new replies.