Contents
Opening and showing
Look and feel
Pro and forms
More in Pro
Speed and hosting
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.
-
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.
-
If it’s needed, name the header your proxy sets in
wp-config.php, such asdefine( 'MODAL_KIT_PRO_CLIENT_IP_HEADER', 'HTTP_CF_CONNECTING_IP' );for Cloudflare. -
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.