close
Page MenuHomePhabricator

Special:Block: Allow configuring the indefinitely option for temporary accounts
Closed, ResolvedPublicFeature

Description

In Special:Block, for temporary accounts, the "indefinitely" option should be replaced with the expiry time of temporary accounts (for WMF wikis - 3 months).

This should not depend on the default value of the temporary account block duration. For example, on hewiki it is not common practice to block temporary accounts for three months as a first block (but rather for a shorter period), so no default value is configured. However, when admins do want to block a temporary account indefinitely, they click "indefinitely" instead of "three months", which needlessly clutters the block log.

Event Timeline

Sorry for not being clear. I don't mean the default times in the dropdown menu, which can indeed be set as you said. I mean the 'indefinitely' button that appears above, which is not affected by the default value, and should be for three months regardless of the default value. (see screenshot)

Screenshot_20260523_224214_Chrome.jpg (1,052×1,360 px, 240 KB)

for WMF wikis - 3 months

Several wikis (en.wp as a particular one) actually block temporary accounts indefinitely. This has utility for mark blocked user scripts and in general sockpuppet hunting.

My opinion is that a button that says indef should mean indef, regardless of user kind and as such this task should be declined.

Several wikis (en.wp as a particular one) actually block temporary accounts indefinitely. This has utility for mark blocked user scripts and in general sockpuppet hunting.

Interesting. Can you please explain why is this the habit in the enwiki? Is this only a matter of convenience (which is what I suggest to change in this task - I suggest that the most accessible button will be block until 3 months - expiration date of the temporary account), or maybe this is done for the sake of having some documentation for the future?

My opinion is that a button that says indef should mean indef, regardless of user kind and as such this task should be declined.

I don't suggest that a button that says "indef" will block for a shorter time. My suggestion is that instead of the button "indef", there will be a button that says "3 months"', because there is no need to spam the blocked list with temporary users.

or maybe this is done for the sake of having some documentation for the future?

This, personally it's useful to establish block evasion. If the user behind the temporary account is editing again, then the 3 month expiry means that it's harder to say that the user evaded their block (because the block since expired)

My suggestion is that instead of the button "indef", there will be a button that says "3 months"', because there is no need to spam the blocked list with temporary users.

This radio option was added recently and was specifically intended to be indefinite. Whether this was intended to be indefinite for temporary accounts is a different matter, but it seems this varies wiki-by-wiki. Therefore, I would suggest that this be configurable per-wiki instead of replacing it entirely

Change #1295758 had a related patch set uploaded (by Neriah; author: Neriah):

[mediawiki/core@master] block: Allow configuring the indef option for temporary accounts

https://gerrit.wikimedia.org/r/1295758

neriah changed the task status from Open to In Progress.May 31 2026, 8:01 PM
neriah claimed this task.
neriah triaged this task as Medium priority.

This, personally it's useful to establish block evasion. If the user behind the temporary account is editing again, then the 3 month expiry means that it's harder to say that the user evaded their block (because the block since expired)

IP addresses had never been blocked indefinitely (except for proxies, I guess) so regarding evading a block the situation is the same like it was a until a few months ago.

This radio option was added recently and was specifically intended to be indefinite. Whether this was intended to be indefinite for temporary accounts is a different matter, but it seems this varies wiki-by-wiki. Therefore, I would suggest that this be configurable per-wiki instead of replacing it entirely

Looks fine to me. I uploaded a patch, I'll be happy if you can review it.

It would be good to update wikis about the new option, for wikis that don't block temporary accounts indefinitely.

neriah renamed this task from Special:Block: For temporary accounts, the block indefinitely button should be set to three months to Special:Block: Allow configuring the indefinitely option for temporary accounts.Jun 8 2026, 12:30 PM

Change #1295758 merged by jenkins-bot:

[mediawiki/core@master] block: Allow configuring the indef option for temporary accounts

https://gerrit.wikimedia.org/r/1295758

Hello @neriah

For Tech News: What wording would you suggest for the content, and to confirm, is the week of June 15th the intended week for the announcement?

Something in the style of this:

Wikis that wish to replace the "indefinitely" button in Special:Block for temporary accounts (for example, wikis that block temporary users only until account expiration) will be able to do so by creating [[MediaWiki:ipb-indefinite-expiry-temporary-account]] with the desired block duration value.

Something in the style of this:

Wikis that wish to replace the "indefinitely" button in Special:Block for temporary accounts (for example, wikis that block temporary users only until account expiration) will be able to do so by creating [[MediaWiki:ipb-indefinite-expiry-temporary-account]] with the desired block duration value.

Thank you!