Manual:DeleteSelfExternals.php

Details
deleteSelfExternals.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script that deletes self-references to $wgServer from the externallinks table.