---
title: "Sites behind a proxy or CDN – Modal Kit Docs"
description: "Pro’s rate limits and one play per visitor go by the visitor’s IP address."
language: "en-US"
canonical_url: "https://modalkitwp.com/docs/proxies-and-cdns/"
source_url: "https://modalkitwp.com/docs/proxies-and-cdns/"
content_type: "text/markdown"
---

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

Contents ▾

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

[Docs](https://modalkitwp.com/docs/) / Speed and hosting

PRO

# Sites behind a proxy or CDN

Pro’s rate limits and one play per visitor go by the visitor’s IP address. Behind a proxy or CDN that doesn’t pass it on, every visitor looks like the same person.

-

1

Most hosts pass the real address on already, so check with yours first. A sign of trouble: a game says everyone has already played, or forms ask people to wait.

-

2

If it’s needed, name the header your proxy sets in `wp-config.php`, such as `define( 'MODAL_KIT_PRO_CLIENT_IP_HEADER', 'HTTP_CF_CONNECTING_IP' );` for Cloudflare.

-

3

Only do this if the proxy always sets that header. Anyone can send it to a site that isn’t behind one, and get round the limits.

Good to know

A whole IPv6 network (/64) counts as one address, because one home or phone is given that many.

Developers can use the `modal_kit_pro_visitor_address` filter for other setups.

[Developers →](https://modalkitwp.com/developers/)

## Still stuck? We’ll help.

[Get support](https://modalkitwp.com/support/)

[Read the FAQ](https://modalkitwp.com/faq/)
