Title: Plugin and cloudflare
Last modified: September 1, 2016

---

# Plugin and cloudflare

 *  [vsaavedra](https://wordpress.org/support/users/vsaavedra/)
 * (@vsaavedra)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/plugin-and-cloudflare/)
 * Hello,
 * I’m using this plugin with cloudflare. The problem I have is that if I have Cloudflare
   activated, the plugin gets the IP from Cloudflare, not from the user PC. Can 
   you please enable some development in order to adapt your plugin to cloudflare?
   You just get the IP from the header x-forwaded-for.
 * I’ll be waiting for an answer.
 * Kind regards,
 * [https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/)

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

 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-cloudflare/#post-7509004)
 * Hi, PBC plugin gets the customer location from WC_Customer object, after that
   WooCommerce gets country of customer through geolocation.
 * You can developed a plugin that add this feature to WooCommerce.
 *  Thread Starter [vsaavedra](https://wordpress.org/support/users/vsaavedra/)
 * (@vsaavedra)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-cloudflare/#post-7509101)
 * So, yo are not using user’s IP?

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

The topic ‘Plugin and cloudflare’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-price-based-on-countries/assets/icon-
   256x256.png?rev=1976858)
 * [Price Based on Country for WooCommerce](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vsaavedra](https://wordpress.org/support/users/vsaavedra/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-and-cloudflare/#post-7509101)
 * Status: not resolved