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:

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

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 created this task.Apr 11 2018, 12:14 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 11 2018, 12:14 PM
Kaganer updated the task description. (Show Details)Apr 11 2018, 12:20 PM
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 added a subscriber: Dereckson.

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.

What ad blocker are you using?

Dereckson updated the task description. (Show Details)Apr 14 2018, 12:15 AM