Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Update and combine Steam related rulesets #15087

Merged
merged 1 commit into from
Apr 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 40 additions & 136 deletions src/chrome/content/rules/Steam.xml
Original file line number Diff line number Diff line change
@@ -1,149 +1,53 @@
<!--
For other Valve coverage, see Valve.xml.
<ruleset name="Steam">
<!-- "steam-api.com" has a cert but it doesn't resolve -->
<!--target host="steam-api.com" /-->
<target host="*.steam-api.com" />
<test url="http://community.steam-api.com/" />
<test url="http://community.steam-api.com/ISteamWebAPIUtil/GetSupportedAPIList/v1/" />
<test url="http://partner.steam-api.com/" />

<target host="steamcommunity.com" />
<test url="http://steamcommunity.com/" />
<test url="http://steamcommunity.com/broadcast/getbroadcastmpd/?steamid=76561197966726415" />
<target host="*.steamcommunity.com" />
<test url="http://www.steamcommunity.com/" />
<test url="http://api.steamcommunity.com/" />
<test url="http://cdn.steamcommunity.com/public/css/skin_1/header.css" />

<target host="partner.steamgames.com" />


CDN buckets:

- steamcdn-a.akamaihd.net
- steamstore-a.akamaihd.net

- akacdn.valve.com.edgesuite.net

- cdn4
- cloud-3
- repo

- content2.steampowered.com.c.footprint.net

- cloud-4

- cds.w2n5c2t7.hwcdn.net

- cloud-2.steampowered.com

- valve.vo.llnwd.net/...

- .hs. doesn't exist
- cdn.steampowered.com
- cloud.streampowered.com
- media.steampowered.com


Nonfunctional domains:

- ^ *
- cafe ¹
- cafesupport ²
- cdn ³
- cloud ³
- cloud-2 ⁴
- cloud-3 ⁵
- cloud-4 ¹
- forums ⁶
- media ³
- repo ⁷
- www ⁶

* 403
¹ Dropped
² 403; mismatched, CN: store.steampowered.com
³ 400; mismatched, CN: *.hs.llnwd.net
⁴ Refused
⁵ 404, akamai
⁶ 503, valid cert
⁷ 504, akamai


Problematic subdomains:

- cdn4 ²

² Works, akamai


Fully covered subdomains:

- api
- kgs
- partner
- partnerupload0
- partnerupload1
- store
- support

-->
<ruleset name="Steam Powered.com (partial)" default_off="Breaks some games">

<!-- Direct rewrites:
-->
<target host="api.steampowered.com" />
<test url="http://api.steampowered.com/ISteamWebAPIUtil/GetSupportedAPIList/v1/" />
<target host="kgs.steampowered.com" />
<target host="partner.steampowered.com" />
<target host="partnerupload0.steampowered.com" />
<target host="partnerupload1.steampowered.com" />
<target host="storefront.steampowered.com" />
<test url="http://storefront.steampowered.com/app/440/" />
<target host="store.steampowered.com" />
<test url="http://store.steampowered.com/app/440/" />
<target host="support.steampowered.com" />
<!--target host="www.steampowered.com" /-->

<!-- Special cases:
-->
<!--target host="steampowered.com" /-->
<!--target host="cdn.steampowered.com" /-->
<!--target host="cdn.store.steampowered.com" /-->

<!-- Redirects to $:
-->
<!--exclusion pattern="^http://www\.steampowered\.com/steamworks/(gettingstarted\.php|images/bg_vtile\.gif|index\.php)" /-->
<!--
503:
-->
<!--exclusion pattern="^http://www\.steampowered\.com/($|steamworks(?:$|[?/]))" /-->
<!--exclusion pattern="^http://(?:www\.)?steampowered\.com/(?:$|status/survey\.html|steamworks(?:$|[?/]))" /-->
<!--
Redirect to http:
-->
<!--exclusion pattern="^http://store\.steampowered\.com/(about|app/\d+|freestuff/demos|news|recommended|stats)/" /-->
<!--
Exceptions:
-->
<exclusion pattern="^http://store\.steampowered\.com/+(?!favicon\.ico|(?:join|login|psn/beginsetup|search|software)(?:$|[?/])|public/images/)" />

<!-- +ve:
-->
<test url="http://store.steampowered.com/about/" />
<test url="http://store.steampowered.com/app/4000/" />
<test url="http://store.steampowered.com/app/266410/" />
<test url="http://store.steampowered.com/app/311560/" />
<test url="http://store.steampowered.com/forum/222621" />
<test url="http://store.steampowered.com/freestuff/demos/" />
<test url="http://store.steampowered.com/genre/Indie/" />
<test url="http://store.steampowered.com/genre/RPG/" />
<test url="http://store.steampowered.com/news/" />
<test url="http://store.steampowered.com/updated/all/" />

<!-- -ve:
-->
<test url="http://store.steampowered.com/login/" />
<test url="http://store.steampowered.com/favicon.ico" />
<test url="http://store.steampowered.com/search/?filter=popularnew" />


<!-- Not secured by server:
-->
<!--securecookie host="^partner\.steampowered\.com$" name="(dateEnd|dateStart|steamstatsAuth|steamworksSteamid|steamworksToken)$" /-->

<target host="help.steampowered.com" />
<target host="cdn.steampowered.com" />
<test url="http://cdn.steampowered.com/public/images/gift/steamcards_promo_02.png" />
<target host="cdn.store.steampowered.com" />
<test url="http://cdn.store.steampowered.com/public/images/gift/steamcards_promo_02.png" />
<target host="www.steampowered.com" />

<securecookie host="^steamcommunity\.com$" name=".+" />
<securecookie host="^partner\.steamgames\.com$" name=".+" />
<securecookie host="^partner\.steampowered\.com$" name=".+" />

<rule from="^https?://cdn\.steamcommunity\.com/"
to="https://steamcommunity-a.akamaihd.net/" />

<!--rule from="^http://steampowered\.com/"
to="https://www.steampowered.com/" /-->
<rule from="^https?://storefront\.steampowered\.com/"
to="https://store.steampowered.com/" />

<!-- Disabled per https://github.com/EFForg/https-everywhere/issues/1453
-->
<!--rule from="^http://cdn\.store\.steampowered\.com/"
to="https://store.steampowered.com/" /-->
<rule from="^https?://((cdn|cdn\.store|www)\.)?steampowered\.com/"
to="https://store.steampowered.com/" />

<rule from="^http:"
to="https:" />
<rule from="^https?://www\.steamcommunity\.com/"
to="https://steamcommunity.com/" />

<rule from="^http:"
to="https:" />
</ruleset>
56 changes: 0 additions & 56 deletions src/chrome/content/rules/Steam_Community.com.xml

This file was deleted.

28 changes: 0 additions & 28 deletions src/chrome/content/rules/Steamgames.com.xml

This file was deleted.

9 changes: 0 additions & 9 deletions src/chrome/content/rules/Valve-mismatches.xml

This file was deleted.

2 changes: 0 additions & 2 deletions src/chrome/content/rules/ValveSoftware.com.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
Other Valve rulesets:
+ Dota_2.com.xml
+ Steam.xml
+ Steam_Community.com.xml
+ Steam_static.com.xml
+ Steamgames.com.xml

Redirect to HTTP:
- ^
Expand Down