Page MenuHomePhabricator

Disallow that folder path contains "/ad/" in mediastorage due to blocking by ad blockers
Closed, InvalidPublic

Description

https://commons.wikimedia.org/wiki/File:Moscow_Wiki-Conference_2017_(2017-10-14)_120.jpg

Some file description pages is look as follows for me:

2018-04-11_3-49-37.jpg (1×1 px, 395 KB)

This is because "/ad/" section in the full image url - my ad blocker recognizes this as a link to be blocked.

2018-04-11_14-58-38.jpg (367×1 px, 156 KB)

These problems look as random and may be occurs for many users and visitors.

In my opinion, "/ad/", "/ads/", "/adv/" and maybe someone others should be disallowed to exclude their blocking by ad blockers.

''See also:'' T23677

Event Timeline

Kaganer updated the task description. (Show Details)
Aklapper renamed this task from Make some folder names in the mediastorage to disallowed due to their blocking by ad blockers to Disallow that folder path contains "/ad/" in mediastorage due to blocking by ad blockers.Apr 11 2018, 2:02 PM
Dereckson closed this task as Invalid.EditedApr 13 2018, 12:07 AM
Dereckson updated the task description. (Show Details)
Dereckson subscribed.

Currently, MediaWiki uses a hash function (here the MD5) to compute the file name.

For example,; if you need to store foo.jpg, let's compute the MD5 of "foo.jpg".

MD5 ("foo.jpg") = d271cbfe95ae3584ade8cac317193995

We take the two first characters of the hash, d and 2 and store the file as /d/d2/foo.jog.

As such, there is no /ads, only /a/ad.

So the solution is straightforward: either you remove the /ad/ rule, either you add an exception for https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/ or https://upload.wikimedia.org/*/a/ad/, either you change your ad blocker and use a more mainstream addon like uBlock origin or Adblock Plus with default lists.