diff --git a/tool/api_for_ismm_isat/README.md b/tool/api_for_ismm_isat/README.md index c49f7da4d2..fb469ce676 100644 --- a/tool/api_for_ismm_isat/README.md +++ b/tool/api_for_ismm_isat/README.md @@ -10,8 +10,11 @@ ### 1a. Set up API for `Are links vulnerable to MITM attack?`(isMM) +Pick A or B. + +> Type A: download JSON files and use them locally 1. Copy [ismm.php](ismm.php) to your website directory.
- e.g. `/api/ismm.php` + e.g. `/api/ismm.php` (you can rename it) 2. Create `listdata` directory.
e.g. `/api/listdata/` 3. Download JSON files (*.json) from [/cloudflare_users/domains](../../cloudflare_users/domains) and save them to dir above.
@@ -20,6 +23,12 @@ 4. Open your API. It should say `OK`.
e.g. `http://localhost/api/ismm.php` +> Type B: Use KarmaAPI online service +1. Copy [ismm_online.php](ismm_online.php) to your website directory.
+ e.g. `/api/ismm_online.php` (you can rename it) +2. Open your API. It should say `OK`.
+ e.g. `http://localhost/api/ismm_online.php` + ### 1b. Set up API for `Will these links block Tor user?`(isAT) diff --git a/tool/api_for_ismm_isat/ismm_online.php b/tool/api_for_ismm_isat/ismm_online.php new file mode 100644 index 0000000000..637443c031 --- /dev/null +++ b/tool/api_for_ismm_isat/ismm_online.php @@ -0,0 +1,34 @@ +