From f54d4e377931258d6d535a8afbe24bb2d724f00b Mon Sep 17 00:00:00 2001 From: Brian Guan Date: Mon, 13 Nov 2023 10:13:31 +0000 Subject: [PATCH] . --- subfiles/service/karma_api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subfiles/service/karma_api.md b/subfiles/service/karma_api.md index 0f8d2d3d2d..7b8c35b158 100644 --- a/subfiles/service/karma_api.md +++ b/subfiles/service/karma_api.md @@ -27,10 +27,10 @@ Replace the `(base url)` to: | ? | ? | | -- | -- | | Location | `(base url)is/cloudflare/` | -| Request Method | `POST` | +| Request Method | `POST` or `GET` | | Input | **Single Question**
`f` or `u` is required. `ignore_cfowned` is optional.
`f` FQDN (e.g. `www.google.com`)
`u` URL (e.g. `https://www.google.com/`)
`ignore_cfowned` Existence (If set, return FALSE when the domain is owned by CloudFlare Inc.)

**Multiple Questions** (max 200 domains)
`ff` is required. `ignore_cfowned` is optional.
`ff` List of FQDN separated by `,` (e.g. `www.google.com,blog.emsisoft.com,youtu.be`)
`ignore_cfowned` Existence (If set, return FALSE when the domain is owned by CloudFlare Inc.) | | Output | JSON value as array.
**Single Question**
If 2nd value(j[1]) is true then the input is Cloudflare.
`[false,false]` (Error or not Cloudflare)
`[true,false]` (Not Cloudflare)
`[true,true]` (Cloudflare)

**Multiple Questions**
Array pair of `question:true\|false`.
`{'example.com':false,...}` (Not Cloudflare)
`{'example.com':true,...}` (Cloudflare) | -| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/cloudflare/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/cloudflare/`
`curl -X POST -F 'ff=www.emsisoft.com,joinmastodon.org,framagit.org' -k --http2 https://clearnet/api/is/cloudflare/` | +| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/cloudflare/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/cloudflare/`
`curl -X POST -F 'ff=www.emsisoft.com,joinmastodon.org,framagit.org' -k --http2 https://clearnet/api/is/cloudflare/`
`curl --http2 https://clearnet/api/is/cloudflare/?ff=www.emsisoft.com,joinmastodon.org,framagit.org` | ---- @@ -42,7 +42,7 @@ Replace the `(base url)` to: | ? | ? | | -- | -- | | Location | `(base url)is/antitor/` | -| Request Method | `POST` | +| Request Method | `POST` or `GET` | | Input | `f` is required.
`f` FQDN (e.g. `www.google.com`) | | Output | JSON value as array. If 2nd value(j[1]) is true then the input is AntiTor.
`[false,false]` (Error or not AntiTor)
`[true,false]` (Not AntiTor)
`[true,true]` (AntiTor) | -| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/antitor/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/antitor/` | +| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/antitor/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/antitor/`
`curl -x socks5h://127.0.0.1:9050 http://onion/api/is/antitor/?f=www.example.com` |