mirror of
https://0xacab.org/dCF/deCloudflare.git
synced 2025-01-15 11:46:56 -05:00
1.6 KiB
1.6 KiB
Simple API files for IsMM/IsAT Add-ons
Requirements
- Web server (or somethig like builtin server)
- PHP 7 or later
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
- Copy ismm.php to your website directory.
e.g./api/ismm.php
(you can rename it) - Create
listdata
directory.
e.g./api/listdata/
- 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) - Open your API. It should say
OK
.
e.g.http://localhost/api/ismm.php
Type B: Use KarmaAPI online service
- Copy ismm_online.php to your website directory.
e.g./api/ismm_online.php
(you can rename it) - 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)
- Copy isat.php to your website directory.
e.g./api/isat.php
- Create
listdata
directory.
e.g./api/listdata/
- Download JSON files (*.json) from /anti-tor_users/domains and save them to dir above.
e.g./api/listdata/antitor_e.json
- Open your API. It should say
OK
.
e.g.http://localhost/api/isat.php
2. Use your API
- Open Add-on's
Options
page. - Select
API URL
. - Input your API URL into right box.
- Done!