Analyze Firewall Blocks in Telegram Stats

The /stats report in your Telegram group shows geographic blocks separately from captcha failures. Check total firewall blocks and top 5 countries over 30 days — then adjust /firewall if legitimate regions are caught or raids keep slipping through.

Geographic firewall blocks in @doublegram_captcha_bot are tracked separately from captcha timeouts and failures. The /stats report includes a firewall section for the last 30 days in your Telegram group.

Firewall section fields

  • Total blocks — Users stopped by geo rules when opening the Mini App
  • Top 5 countries — Country codes with flag emojis and block counts (e.g. 🇺🇸 US: 42)

Each block is logged when a user hits the firewall at Mini App open — before reCAPTCHA runs.

How to interpret spikes

PatternLikely causeAction
One country dominatesRaid from that regionAdd to blacklist or tighten whitelist
Blocks rising, captcha flatFirewall catching traffic earlyWorking as intended during geo attacks
Expected country in top blocksVPN or wrong modeReview whitelist/blacklist mode
Zero blocksNo geo rules or open policyNormal if firewall unused

Tune rules after reading stats

  1. Run /stats weekly during active growth.
  2. Note top blocked countries.
  3. Open /firewall — add or remove countries or switch modes.
  4. Enable Notifications in /settings for real-time owner alerts on each block.

VPN effect: A member in Italy on a US VPN appears as US to Cloudflare — stats show the VPN country, not physical location.

Firewall blocks vs captcha failures

  • Firewall block — Removed at Mini App open, never saw captcha
  • Captcha failure — Counted in failed verifications (expired, failed reCAPTCHA, kicked)

Quick reference

  • Source: /stats firewall section
  • Window: 30 days
  • Shows: total + top 5 countries
  • Tune: /firewall

Related: use /debug when something is not working — see Troubleshoot @doublegram_captcha_bot with /debug.