From 18a92bedc1ecf4b5fd9665d077e007e503f48c80 Mon Sep 17 00:00:00 2001 From: khang-nd Date: Wed, 12 Jun 2024 23:14:41 +0700 Subject: [PATCH] Update requestly rule file --- .../public/assets/win7-simu-requestly.json | 57 ++++++++++++++----- src/blog/load-any-websites-in-iframes.md | 2 +- 2 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/.vuepress/public/assets/win7-simu-requestly.json b/src/.vuepress/public/assets/win7-simu-requestly.json index a95961f2..84b611c2 100644 --- a/src/.vuepress/public/assets/win7-simu-requestly.json +++ b/src/.vuepress/public/assets/win7-simu-requestly.json @@ -4,53 +4,84 @@ "creationDate": 1665680086864, "currentOwner": "H2Z5XLxlX6R67NSxLuPQLbeg0WH2", "description": "", + "extensionRules": [ + { + "action": { + "responseHeaders": [ + { + "header": "X-Frame-Options", + "operation": "remove" + }, + { + "header": "Content-Security-Policy", + "operation": "set", + "value": "allowall" + } + ], + "type": "modifyHeaders" + }, + "condition": { + "excludedInitiatorDomains": [ + "requestly.io" + ], + "excludedRequestDomains": [ + "requestly.io" + ], + "initiatorDomains": [ + "win7simu.visnalize.com" + ], + "isUrlFilterCaseSensitive": true, + "regexFilter": ".*" + } + } + ], "groupId": "", "id": "Headers_nbukp", "isSample": false, "lastModified": 1666547545920, "lastModifiedBy": "H2Z5XLxlX6R67NSxLuPQLbeg0WH2", - "modificationDate": 1665853777997, + "modificationDate": 1717845490559, "name": "Win7 Simu Browsers", "objectType": "rule", "pairs": [ { "id": "twh5n", "modifications": { - "Request": [], "Response": [ { "header": "X-Frame-Options", - "id": "5jvwb", + "id": "0el6t", "type": "Remove", - "value": "" + "value": "*" }, { "header": "Content-Security-Policy", - "id": "z7v1q", - "type": "Remove", - "value": "" + "id": "qbffs", + "type": "Modify", + "value": "allowall" } ] }, "source": { "filters": [ { + "pageDomains": [ + "win7simu.visnalize.com" + ], "pageUrl": { "operator": "Contains", "value": "win7simu.visnalize.com" - }, - "resourceType": [ - "sub_frame" - ] + } } ], "key": "Url", - "operator": "Matches", - "value": "/^(?!https?:\\/\\/win7simu)/gi" + "operator": "Contains", + "value": "" } } ], "ruleType": "Headers", + "schemaVersion": "3.0.0", "status": "Active", "version": 2 } diff --git a/src/blog/load-any-websites-in-iframes.md b/src/blog/load-any-websites-in-iframes.md index 9e17192d..fa9c3a26 100644 --- a/src/blog/load-any-websites-in-iframes.md +++ b/src/blog/load-any-websites-in-iframes.md @@ -53,7 +53,7 @@ This guide is not applicable for Android. If you are using the Android version, ### 2. Import the predefined rules -* Download this JSON file which contains the Requestly rules to make Win7 Simu's web browers capable of loading any websites. +* Download this JSON file which contains the Requestly rules to make Win7 Simu's web browers capable of loading any websites (_file last updated: June 12, 2024_) * Go to [Requestly app page](https://app.requestly.io/rules/my-rules) * Upload the JSON file to import the rules.