CryptoBot payment module for WHMCS client panel
The module is used in ApexNodes and MadHost client panel
- Download the latest release and upload the files from the archive to the following path:
/var/www/whmcs/modules/gateways/
- Activate the module, set the USD currency in the payment module settings.
First, you need to create a new app and get API token. Open @CryptoBot, go to Crypto Pay and tap Create App to get API Token.
Open @CryptoBot, go to Crypto Pay → My Apps, choose an app, then choose Webhooks... and tap 🌕 Enable Webhooks. Then enter the following link:
https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php
Unfortunately, CryptoBot does not provide specific addresses. If you use a firewall (such as Cloudflare), create a custom WAF rule that will skip all requests sent to your handler URL(https://.../modules/gateways/callback/cryptobot.php).
I made a bypass rule for webhook, but that opened the backdoor to possible DDoS attacks. How to fix it?
Open @CryptoBot, go to Crypto Pay → My Apps, choose an app, then choose Webhooks... and tap 🌕 Enable Webhooks. Then enter the following link:
https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php?<RANDOM CHARACTERS WITHOUT SPACES>
Characters after the ? sign count as GET parameters that only you know. Now make a custom WAF rule (e.g. via Cloudflare) that checks the full URL path:
(starts_with(http.request.full_uri, "https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php?<RANDOM CHARACTERS WITHOUT SPACES>"))
Any questions? Write me in Telegram: @polenikaa