Title: Invalid response code 403
Last modified: October 8, 2023

---

# Invalid response code 403

 *  Resolved [Vadim](https://wordpress.org/support/users/vadikcoma/)
 * (@vadikcoma)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/invalid-response-code-403/)
 * We have CloudFlare with Bot Protection and Under Attack mode ON. Stock Sync returns
   errors when trying to sync. I assume CloudFlare is blocking Stock Sync. What 
   would be the right way to allow Stock Sync traffic via CloudFlare?

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP Trio](https://wordpress.org/support/users/wooelements/)
 * (@wooelements)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/invalid-response-code-403/#post-17110691)
 * Hi Vadim,
 * Cloudflare considers Stock Sync for WooCommerce a bot (which it kind of is) and
   thus blocks it. Fortunately, Cloudflare offers a way to whitelist internal traffic.
    1. First you will need to find the IP address of your **web hosting**. Usually 
       this is displayed in your web hosting panel (cPanel or Plesk) or you can use
       tool like [NSLookup.io](https://www.nslookup.io/website-to-ip-lookup/) to find
       it
    2. Log in to [Cloudflare](https://dash.cloudflare.com/)
    3. Click on your site under **Websites**
    4. Go to **Security > WAF** and click **Create rule**
    5. Under **If incoming requests match…**, enter **IP Source Address – equals – [
       your web hosting IP address]**
    6. Under **Then take action…**, select **Skip**
    7. Under **WAF components to skip**, check everything, also under **More components
       to skip**
    8. Click **Deploy**
 * If your websites reside on different servers, you can use **is in list** instead
   of **equals** in the step 4 to allow multiple IP addresses.
 * After this Cloudflare should consider all internal traffic including stock syncing
   requests safe.
 * Closing this now but feel free to reopen if you need further help.
    -  This reply was modified 2 years, 7 months ago by [WP Trio](https://wordpress.org/support/users/wooelements/).
      Reason: added more info

Viewing 1 replies (of 1 total)

The topic ‘Invalid response code 403’ is closed to new replies.

 * ![](https://ps.w.org/stock-sync-for-woocommerce/assets/icon-128x128.png?rev=2019526)
 * [Stock Sync for WooCommerce](https://wordpress.org/plugins/stock-sync-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/stock-sync-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/stock-sync-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stock-sync-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stock-sync-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP Trio](https://wordpress.org/support/users/wooelements/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/invalid-response-code-403/#post-17110691)
 * Status: resolved