From b24c1b42e7e7836e92e09690e84b9f954c567ccd Mon Sep 17 00:00:00 2001 From: nurbek Date: Fri, 29 Apr 2022 00:41:33 +0600 Subject: [PATCH 1/2] Update hCaptcha / security --- src/technologies/h.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/technologies/h.json b/src/technologies/h.json index 0ab4a9451..2e4a2381d 100644 --- a/src/technologies/h.json +++ b/src/technologies/h.json @@ -1250,10 +1250,20 @@ "cats": [ 16 ], - "html": "]+[^<]+#cf-hcaptcha-container[^<]+", + "description": "hCaptcha is an anti-bot solution that protects user privacy and rewards websites.", + "css": "#cf-hcaptcha-container", "icon": "hCaptcha.svg", - "scriptSrc": "https://hcaptcha.com/([\\d]+?)/api.js\\;version:\\1", - "website": "https://www.hcaptcha.com/" + "js": { + "hcaptcha.getRespKey": "", + "hcaptchaOnLoad": "" + }, + "scriptSrc": "hcaptcha\\.com/([\\d]+?)/api\\.js\\;version:\\1", + "saas": true, + "pricing": [ + "freemium", + "poa" + ], + "website": "https://www.hcaptcha.com" }, "hantana": { "cats": [ From 14118fd8afc4e16fad47bca1f777625b4400a87f Mon Sep 17 00:00:00 2001 From: nurbek Date: Fri, 29 Apr 2022 00:51:28 +0600 Subject: [PATCH 2/2] add header, dom --- src/technologies/h.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/technologies/h.json b/src/technologies/h.json index 2e4a2381d..858c18904 100644 --- a/src/technologies/h.json +++ b/src/technologies/h.json @@ -1253,6 +1253,10 @@ "description": "hCaptcha is an anti-bot solution that protects user privacy and rewards websites.", "css": "#cf-hcaptcha-container", "icon": "hCaptcha.svg", + "dom": "link[href*='hcaptcha.com']", + "headers": { + "content-security-policy": "(?:\\.|//)hcaptcha\\.com" + }, "js": { "hcaptcha.getRespKey": "", "hcaptchaOnLoad": ""