Debug Mode

Test and Validate Your Campaign Before Going Live

🎯 What Is Debug Mode?

The Debug Mode in XCLO.app allows you to simulate visits and validate whether your campaign is working as expected β€” before running real traffic. This is a safe way to check:

  • βœ… Are device, browser, country, or UTM filters working?
  • βœ… Is the offer or white page displaying correctly?
  • βœ… Are VPNs and bots correctly blocked?
  • βœ… Is multi-offer targeting routing the right traffic?

βš™οΈ How to Enable Debug Mode

Option 1: Enable from Campaign Builder

  1. Open the Campaign Builder in XCLO
  2. Scroll to the bottom
  3. Check: Enable Debug Mode (For Testing Purposes Only)

Option 2: Enable Manually in index.php

  1. Open your index.php file
  2. Find the line: $debug_mode = false;
  3. Change it to: $debug_mode = true;

⚠️ Important: Do not edit or remove symbols like ; or ,. Syntax errors will cause the file to break.

πŸ” How to Use Debug Mode

  1. Upload your index.php to your server
  2. Visit the cloaking URL in your browser:
  3. https://yourdomain.com/cloaking/index.php

  4. Optionally add UTM for testing:
  5. https://yourdomain.com/cloaking/index.php?utm_source=google

βœ… Sample Output Explained

{
  "match": true,
  "reason": "matched",
  "data": {
    "device": "desktop",
    "os": "Windows",
    "browser": "Chrome",
    "bot": false,
    "ip": "103.18.34.159",
    "country": "ID",
    "asn": "AS58491",
    "asn_org": "PT INDONESIA COMNETS PLUS",
    "vpn": false
  }
}

This means the visit passed all filters and was shown the offer page.

❌ If Something Doesn’t Match

You might see:

"match": false, "reason": "Blocked UTM"

This helps you identify what caused the block β€” whether it’s country, device, UTM, VPN, or bot detection.

🚫 Important: Turn Debug Mode OFF After Testing

  1. Open index.php
  2. Change $debug_mode = true; back to false;
  3. Or regenerate the campaign without debug checked

Never run live traffic with debug enabled β€” it exposes sensitive logic and internal data.

🧠 Best Practices

  • Always test with Debug Mode for every new campaign
  • Use VPN or device spoofing tools to simulate different filters
  • Test both passing and blocked scenarios
  • Document results per traffic source / targeting