> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stock-sync.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to resolve WooCommerce API Errors Caused by Firewall Blocking?

**Issue:** SyncX cannot connect to WooCommerce due to API authorization errors, often caused by firewall/security blocking (Cloudflare/Cloudways).

1. **Check Bot Fight Mode:**
    a. Log into your Cloudflare dashboard
    b. Use the Quick Search bar at the top and type "Bot Fight Mode"
    c. It should take you directly to the setting then disable/turn off Bot Fight Mode

2. **Create a separate Skip rule** for the WooCommerce API path:
    a. Go to **Security → WAF → Custom Rules**
    b. Click **"Create Rule"**
    c. Rule name: Allow Stock Sync WooCommerce API
    d. whitelist these IPs: 52.202.180.173, 34.197.203.250, 52.20.189.51
    e. Expression: (http.request.uri.path contains "/wp-json/wc/")
    f. So the full expression becomes:`(ip.src in {52.202.180.173 34.197.203.250 52.20.189.51}) or (http.request.uri.path contains "/wp-json/wc/")`
    g. Action: **Skip** → select **all** security features
    h. Drag this rule to the **top** of your rule list
    i. Click **"Deploy"**


**Note:** If stuck at “Authorize” page or API keys multiply, your Cloudflare or your hosting provider such as Cloudways is still blocking the connection from Stock Sync.