Will your website be blocked by Kominfo? Let's check!
Indiwtf CLI is a tiny command-line tool written in Go that allows you to check if your website is blocked in Indonesia. It uses the Indiwtf API to check the accessibility status of the website in Indonesian Internet network.
You can access the web version by visiting indiwtf.com. Indiwtf is also available in a Telegram Bot version.
Run indiwtf
with one or more domains:
indiwtf [domain1] [domain2] ...
Check the accessibility status of a single website:
indiwtf example.com
Check the accessibility status of multiple websites:
indiwtf puredns.org github.com reddit.com
Indiwtf CLI requires an API token to check website accessibility. You can store the API token securely in a configuration file located at ~/.indiwtf/config.json
. The program will prompt you to enter the token if it's not found in the configuration file.
To obtain an API token, please visit indiwtf.com/pricing.
Indiwtf CLI available as prebuilt binary, you can download and place it under /usr/local/bin
folder, run:
sudo wget -O /usr/local/bin/indiwtf \
https://github.com/fransallen/indiwtf-cli/raw/main/indiwtf
sudo chmod +x /usr/local/bin/indiwtf
To remove Indiwtf CLI and its configuration files, follow these steps:
- Remove the indiwtf binary:
sudo rm /usr/local/bin/indiwtf
Remove the configuration directory and file:
rm -rf ~/.indiwtf
- Check the accessibility status of a website based on the resolved IP address.
- Resolve IP address for a given hostname using a custom DNS server in Indonesia.
- Supports checking multiple websites in a single run.
You will need Go (version 1.16 or above).
Clone the repository:
git clone https://github.com/fransallen/indiwtf-cli.git
cd indiwtf-cli
To build the binary, run:
CGO_ENABLED=0 go build -o indiwtf main.go
This project is licensed under the MIT License. See the LICENSE file for details.
This project was inspired by the need to quickly check if websites are blocked in Indonesia.
Contributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request.