This commit is contained in:
Guest workers 2023-08-15 23:40:40 +00:00
parent ead927827e
commit e7991869b4
3 changed files with 42 additions and 3 deletions

View File

@ -186,6 +186,7 @@
- [with Firewall](block_cloudflare_with/firewall.md)
- [with Proxy](block_cloudflare_with/proxy.md)
- [on Android](block_cloudflare_with/android.md)
- [on Fediverse](block_cloudflare_with/fediverse.md)
- [PEOPLE.md](../PEOPLE.md)
- [Twitter](people/twitter.md)
- [Mastodon](people/mastodon.md)

View File

@ -0,0 +1,38 @@
# How to Block Cloudflare
## on Fediverse
This page show you how to block CloudFlare servers from your timeline.
- [Cloudflare-only Fediverse list](https://karma.crimeflare.eu.org:1984/api/listdata/?name=cf_fediverse_CSV), from [Cloudflared Fediverse](../cloudflared/social/fediverse.md)
### With Mastodon (as User)
<details><summary> _click me_ </summary>
1. Download `Cloudflare-only Fediverse list` above.
2. Go to your `Preferences` -> `Import and Export` section.
3. Select Import type `Domain blocklist list`, select Data file to your downloaded text file, click `UPLOAD`.
4. Confirm the import if asked.
5. Wait for Mastodon complete the import. This will take a long time.
</details>
### With Mastodon (as Admin)
<details><summary> _click me_ </summary>
1. Download `Cloudflare-only Fediverse list` above. ([API info](../service/karma_api.md#get-data))
2. Save below script and run it.
```
#!/bin/bash
while IFS= read -r domain
do
tootctl domains block "$domain"
done < cf_fediverse.txt
```
</details>

View File

@ -51,13 +51,13 @@ Replace the `(base url)` to:
### Get Data
- Get data in simple JSON format.
- Get data in simple format.
- For your automation use.
| ? | ? |
| -- | -- |
| Location | `(base url)listdata/` |
| Request Method | `GET` |
| Input | `name` is required.<br>`name` string (e.g. `cf_fediverse`)<br>possible values:<br>`cf_fediverse` [Cloudflared Fediverse](../cloudflared/social/fediverse.md) |
| Output | JSON value as array. |
| Input | `name` is required.<br>`name` string (e.g. `cf_fediverse`)<br>possible values:<br>`cf_fediverse` JSON [Cloudflared Fediverse](../cloudflared/social/fediverse.md)<br>`cf_fediverse_CSV` Text |
| Output | JSON or Text |
| cURL Example | `curl -k --http2 https://clearnet/api/listdata/?name=cf_fediverse` |