Skip to main content

Host a Discord Bot 24/7 on a Subdomain Endpoint

Expose your Discord bot dashboard or webhook endpoint through an is-pro.dev subdomain, configure SSL, and keep your bot running with uptime monitoring and proper DNS routing.

Written by Mayank Baswal

Founder of is-cool-me · DNS & Platform Infrastructure

Mayank Baswal maintains the is-cool-me platform and writes technical guides focused on DNS configuration, subdomain infrastructure, SSL troubleshooting, deployment workflows, and platform reliability.

Reviewed by is-cool-me Technical Review

Introduction

Discord bots have become essential tools for server management, entertainment, and community engagement. While the bot itself runs on your server or cloud platform, exposing its dashboard, webhook endpoints, or status page through a clean subdomain makes it accessible and professional. An is-pro.dev subdomain gives your Discord bot a branded web presence with SSL, DNS management, and uptime monitoring — all for free. This guide covers hosting bot dashboards, webhook receivers, and status pages on your subdomain.

Prerequisites

  • A Discord bot created in the Discord Developer Portal with a token
  • A hosting platform for your bot: a VPS, cloud server, or a free platform like Railway or Fly.io
  • An is-pro.dev subdomain registered at dash.is-pro.dev
  • Basic knowledge of Node.js or Python for bot development

Step 1: Host Your Bot Dashboard on a Subdomain

Many Discord bots have a web dashboard for configuration — slash command settings, moderation logs, role management, and analytics. Build your dashboard as a web application using React, Vue, or plain HTML/CSS. Host it on GitHub Pages, Vercel, or Cloudflare Pages. Connect your is-pro.dev dashboard subdomain (e.g., bot.yourname.is-pro.dev) to the hosting platform using a CNAME record. The dashboard communicates with your bot via API endpoints exposed through the same subdomain or a dedicated API subdomain. Use OAuth2 with Discord to authenticate users on your dashboard — this allows users to log in with their Discord account and manage bot settings for servers they administer.

Step 2: Set Up Webhook Endpoints

Discord bots often need to receive webhooks from external services — GitHub, Twitter, payment processors, or monitoring tools. Create a webhook receiver endpoint on your bot server. Use Express.js for Node.js or Flask for Python to handle POST requests at a route like /webhook/github. Validate incoming webhooks using the provider's signature header to ensure requests are authentic. Your is-pro.dev subdomain serves as the base URL for these webhooks. Configure your external services to send webhooks to https://bot.yourname.is-pro.dev/webhook/github. Make sure the DNS record for this subdomain is set to DNS-only (gray cloud) if your bot server uses a non-standard port, or use Cloudflare Tunnel for proxied connections.

Step 3: Create a Bot Status Page

A status page lets your users check if the bot is online, see recent incidents, and subscribe to notifications. Build a simple status page that pings your bot's API every 30 seconds and displays the result. Use green/yellow/red indicators for online, degraded, and offline states. Include a history of uptime checks and a subscribe form for email or Discord DM notifications. Host this status page on a separate is-pro.dev subdomain like status.yourname.is-pro.dev. Use free uptime monitoring services like UptimeRobot or Better Stack to check your bot's API endpoint and trigger the status page update. This separate subdomain ensures your status page stays accessible even if the main bot dashboard goes down.

Step 4: Configure SSL and DNS for Bot Services

All bot web services should use HTTPS. Cloudflare provides free SSL certificates for proxied DNS records, which works well for bot dashboards and status pages hosted on standard web hosting platforms. For bot servers that run on custom ports (not 80/443), use DNS-only (gray cloud) mode and configure SSL directly on your server using Let's Encrypt with Certbot. If your bot server is behind a NAT or firewall without a public IP, use Cloudflare Tunnel (cloudflared) to expose your local bot services through Cloudflare's network. This provides a proxied connection with SSL even for services on non-standard ports, without needing to open firewall ports.

Step 5: Set Up Uptime Monitoring

Discord bots must maintain a WebSocket connection to Discord's gateway. If the bot goes offline, it stops responding to commands. Set up monitoring for both the bot itself (WebSocket connection health) and its web services (HTTP endpoint availability). Use UptimeRobot or Better Stack to ping your bot's API or status page every 5 minutes. Configure alerts via email, Discord webhook (ironic but effective), or SMS for critical outages. The is-pro.dev monitoring dashboard can also track your subdomain DNS resolution and SSL certificate status. For comprehensive monitoring, set up a health check endpoint in your bot that returns memory usage, command counts, and WebSocket latency.

Best Practices

  • Rate limit webhook endpoints to prevent abuse — implement a sliding window rate limiter in your webhook receiver
  • Use environment variables for sensitive configuration like the Discord bot token and OAuth2 client secret
  • Log all incoming webhooks for debugging, but sanitize sensitive data before writing to logs
  • Implement a maintenance mode page on your dashboard subdomain for planned downtimes

Conclusion

An is-pro.dev subdomain provides the perfect web companion for your Discord bot. Whether you need a configuration dashboard, webhook receiver, status page, or all three, the combination of free DNS management, SSL, and hosting creates a professional presence for your bot project.

FAQ

Can I host the Discord bot itself on my subdomain?

Not directly — a subdomain points to a web server, but Discord bots are WebSocket clients that connect to Discord's gateway. Use the subdomain for the bot's web dashboard and API, not the bot process itself.

What if my bot server is on my home network with a dynamic IP?

Use Cloudflare Tunnel (cloudflared) to create a secure, proxied connection without exposing your home IP. The tunnel handles SSL termination and works with dynamic IPs.

How do I handle Discord OAuth2 callbacks on my subdomain?

Register your subdomain URL (e.g., https://bot.is-pro.dev/auth/callback) in the Discord Developer Portal as a redirect URI. The OAuth2 flow will redirect users to this URL after authorization.

FAQ

Is Bots setup free on is-pro.dev?

Yes, all subdomains on is-pro.dev include free DNS management and SSL certificates.

How long does DNS take to propagate?

Cloudflare typically propagates DNS changes within seconds to a few minutes globally.

Can I use this for commercial projects?

Yes, is-pro.dev subdomains can be used for personal and commercial projects within our fair use policy.