While looking at mediawiki_editattempt_block, I noticed that a significant number of events are associated with the bingbot browser_family in the user_agent_map field. For enwiki on September 25, 2023, for example, this accounted for 37% of events.
The likely reason is that the bot is visiting each link on the page. The edit link in Vector appears like so:
<a href="/w/index.php?title=French_Consulate&action=edit" title="Edit this page [⌃⌥e]" accesskey="e"><span>Edit</span></a>
so the bot doesn't have any indication (unless it is considering the accesskey attribute, which it doesn't seem to) that it should not crawl this link.
So, the bot visits the "Edit" link, and then that triggers the display of a "Your IP or IP range is blocked from editing", which ends up in mediawiki_editattempt_block.
My proposal is to add rel="nofollow" to the Edit link, to prevent bots from attempting to visit those pages.
Questions
- are there knock-on effects from doing so that might have unintended/negative consequences?