linkchecker: Ignore Wordpress XMLRPC
Problem:
You are using linkchecker to check your Wordpress site, but you get the following error multiple times:
$ linkchecker https://techoverflow.net
URL `https://techoverflow.net/xmlrpc.php'
Parent URL https://techoverflow.net/, line 8, col 1
Real URL https://techoverflow.net/xmlrpc.php
Check time 1.394 seconds
Result Error: 405 Method Not Allowed
Solution
Installing a plugin that disables XMLRPC doesn’t help here - because the XMLRPC pingback link will still be present on every page.
Instead, just tell linkchecker to ignore the XMLRPC link altogether:
linkchecker https://techoverflow.net --ignore-url=/xmlrpc.php$