Steam has a custom protocol (steam://
), and even it uses two buttons:
Install Steam | Play Now
To test if a URL works, we can use fetch
, and if we get a successful response (2XX
result), it means the site exists. However, unfortunately, for security reasons, this does not apply to custom protocols.