Title: How to stop querying woocommerce.com
Last modified: April 25, 2023

---

# How to stop querying woocommerce.com

 *  Resolved [akadimi2](https://wordpress.org/support/users/akadimi2/)
 * (@akadimi2)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/how-to-stop-querying-woocommerce-com/)
 * Hi,
 * I noticed that for every request made by a client to my site homepage, my server
   generates dns queries for woocommerce.com then connects to it using https before
   generating the response, thus adding unaccpetable delay (~1-4 seconds) and unnecessary
   traffic.
 * Debugging already made:
    - Making sure that woocommerce tracking is not enabled
    - Installing a fresh test environment
 * But the problem persists.
 * How to stop woocommerce querying and connecting to woocommerce.com?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Luke Cavanagh](https://wordpress.org/support/users/lukefiretoss/)
 * (@lukefiretoss)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/how-to-stop-querying-woocommerce-com/#post-16686098)
 * Some constants can be used to block external requests and set which external 
   hosts are accessible.
 * `define( 'WP_HTTP_BLOCK_EXTERNAL', true );
   define( 'WP_ACCESSIBLE_HOSTS', 'api.
   wordpress.org,*.github.com' );
 * [https://developer.wordpress.org/apis/wp-config-php/#block-external-url-requests](https://developer.wordpress.org/apis/wp-config-php/#block-external-url-requests)
 *  Thread Starter [akadimi2](https://wordpress.org/support/users/akadimi2/)
 * (@akadimi2)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/how-to-stop-querying-woocommerce-com/#post-16686953)
 * [@lukefiretoss](https://wordpress.org/support/users/lukefiretoss/) The fix worked
   perfectly. Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to stop querying woocommerce.com’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [requests](https://wordpress.org/support/topic-tag/requests/)

 * 2 replies
 * 2 participants
 * Last reply from: [akadimi2](https://wordpress.org/support/users/akadimi2/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/how-to-stop-querying-woocommerce-com/#post-16686953)
 * Status: resolved