deCloudflare/tool/api_for_ismm_isat/README.md
2023-12-06 01:12:40 +00:00

1.6 KiB

Simple API files for IsMM/IsAT Add-ons

Requirements

Pick A or B.

Type A: download JSON files and use them locally

  1. Copy ismm.php to your website directory.
    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 and save them to dir above.
    e.g. /api/listdata/cloudflare_e.json
    (you can use cfdomains --dl to download JSON)
  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 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
  1. Copy isat.php to your website directory.
    e.g. /api/isat.php
  2. Create listdata directory.
    e.g. /api/listdata/
  3. Download JSON files (*.json) from /anti-tor_users/domains and save them to dir above.
    e.g. /api/listdata/antitor_e.json
  4. Open your API. It should say OK.
    e.g. http://localhost/api/isat.php

2. Use your API

  1. Open Add-on's Options page.
  2. Select API URL.
  3. Input your API URL into right box.
  4. Done!