Blocklisting/Admin: Difference between revisions

Jump to navigation Jump to search
(→‎Extension blocks: Adding a draft of the Kinto instructions.)
Line 11: Line 11:
#* The Severity should be 1 for soft blocks and 3 for hard blocks. A severity set to 2 (reserved for a medium block), or no severity will also produce a hard block. To avoid ambiguity, these options shouldn't be used. Hard blocks should be limited to malware.
#* The Severity should be 1 for soft blocks and 3 for hard blocks. A severity set to 2 (reserved for a medium block), or no severity will also produce a hard block. To avoid ambiguity, these options shouldn't be used. Hard blocks should be limited to malware.
To limit a block to a specific application versions, the detail can be added with a Severity set to 0, or an invalid GUID, to keep it temporarily disabled. Then you can add a [https://addons.mozilla.org/admin/models/blocklist/blocklistapp/ blocklist app item] and link it to the detail item. Once that's done, the Severity or GUID can be set to their real values.
To limit a block to a specific application versions, the detail can be added with a Severity set to 0, or an invalid GUID, to keep it temporarily disabled. Then you can add a [https://addons.mozilla.org/admin/models/blocklist/blocklistapp/ blocklist app item] and link it to the detail item. Once that's done, the Severity or GUID can be set to their real values.
===XML Examples===
This is how the different block types look in blocklist.xml.
Soft block:
<pre><emItem  blockID="i20" id="{AB2CE124-6272-4b12-94A9-7303C7397BD1}">
  <versionRange  minVersion="0.1" maxVersion="5.2.0.7164" severity="1">
  </versionRange>
</emItem></pre>
Soft block with target application:
<pre><emItem  blockID="i23" id="firefox@bandoo.com">
  <versionRange  minVersion="5.0" maxVersion="5.0" severity="1">
    <targetApplication  id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
      <versionRange  minVersion="3.7a1pre" maxVersion="*" />
    </targetApplication>
  </versionRange>
</emItem></pre>
Hard block:
<pre><emItem  blockID="i73" id="a1g0a9g219d@a1.com">
  <versionRange  minVersion="0" maxVersion="*" severity="3">
  </versionRange>
</emItem></pre>


== Extension blocks (DRAFT KINTO VERSION) ==
== Extension blocks (DRAFT KINTO VERSION) ==
Line 36: Line 60:
<sup>2</sup> '''[Still valid?]''' To limit a block to a specific application versions, the detail can be added with a Severity set to 0, or an invalid GUID, to keep it temporarily disabled. Then you can add a [https://addons.mozilla.org/admin/models/blocklist/blocklistapp/ blocklist app item] and link it to the detail item. Once that's done, the Severity or GUID can be set to their real values.
<sup>2</sup> '''[Still valid?]''' To limit a block to a specific application versions, the detail can be added with a Severity set to 0, or an invalid GUID, to keep it temporarily disabled. Then you can add a [https://addons.mozilla.org/admin/models/blocklist/blocklistapp/ blocklist app item] and link it to the detail item. Once that's done, the Severity or GUID can be set to their real values.


===XML Examples===
===JSON Example===
This is how the different block types look in blocklist.xml.


Soft block:
<pre>
<pre><emItem  blockID="i20" id="{AB2CE124-6272-4b12-94A9-7303C7397BD1}">
{
  <versionRange  minVersion="0.1" maxVersion="5.2.0.7164" severity="1">
  "guid":"{de71f09a-3342-48c5-95c1-4b0f17567554}",
  </versionRange>
  "blockID":"i1493",
</emItem></pre>
  "enabled":true,
  "last_modified":1484867614757,
  "details":{
      "who":"All users who have this add-on installed.",
      "created":"2017-01-12T22:17:59Z",
      "bug":"https://bugzilla.mozilla.org/show_bug.cgi?id=1329654",
      "name":"Search for Firefox Convertor (malware)",
      "why":"This is a malicious add-on that is installed using a fake name. It changes search and homepage settings."
  },
  "versionRange":[
      {
        "targetApplication":[


Soft block with target application:
        ],
<pre><emItem  blockID="i23" id="firefox@bandoo.com">
        "minVersion":"0",
  <versionRange  minVersion="5.0" maxVersion="5.0" severity="1">
        "maxVersion":"1.3.9",
    <targetApplication  id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
        "severity":3
       <versionRange  minVersion="3.7a1pre" maxVersion="*" />
       }
    </targetApplication>
  ],
  </versionRange>
  "prefs":[
</emItem></pre>


Hard block:
  ],
<pre><emItem  blockID="i73" id="a1g0a9g219d@a1.com">
  "id":"d6ec9f54-9945-088e-ba68-40117eaba24e",
  <versionRange  minVersion="0" maxVersion="*" severity="3">
  "schema":1484335370642
  </versionRange>
}
</emItem></pre>
</pre>


== Plugin blocks ==
== Plugin blocks ==
Confirmed users
534

edits

Navigation menu