Portcheck is a simple service for checking if a port is open to the internet, only ports on the request source IP are checked.
It features Recaptcha, ratelimits, Cloudflare support, logging with rollover and compression, and the ability to restrict ports, comes with a default restricted ports list.
You can try it out live at portcheck.komodai.com.
- Open
main.go
and locatereCAPTCHASecret = ""
and enter your Recaptcha secret. - Open
www/index.html
and locatedata-sitekey=""
and enter your own Recaptcha site key. - If you are proxying behind Cloudflare, open
main.go
and setuseCloudflare
to true, this will pass through client IPs for logging, otherwise it will log127.0.0.1
. - Build using
go build .
and run!
Optionally adjust:
- Ratelimits.
- Log location and rollover size.
- Restricted ports.
All these settings can be found in main.go
.