The Website Health Checker is a small command-line tool written in Go that allows users to check the health status of a website. It performs a simple health check similar to the ping
command but specifically tailored for websites.
To use the Website Health Checker, you can either compile the source code yourself or download the precompiled executable for your platform.
- Make sure you have Go installed on your system. If not, you can download and install it from the official Go website.
- Clone this repository to your local machine.
git clone https://github.com/nishantnz/go-sitestatus
- Navigate to the project directory.
cd go-sitestatus
- Compile the source code to generate the executable.
go build -o WUD.exe
- Download the precompiled executable(WUD.exe) for your platform from the Releases page.
Once you have the executable installed, you can use the following command to check the health status of a website.
WUD.exe --domain example.com
Replace example.com
with the domain name you want to check. By default, the tool will use port 80 for the health check. If you want to specify a different port, you can use the --port
flag:
WUD.exe --domain example.com --port 443
This command will check the health of the website example.com
on port 443
.
--domain
or-d
: Specifies the domain name to check (required).--port
or-p
: Specifies the port number to use for the health check (optional, default is port 80).