Benjamin Pick
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] Shortcode to show content in one countryYes IP detection always has an error rate. It is good to let the user override the automatic detection (e.g. a malaysia customer happens to travel outside of malaysia, yet the content for malaysia is relevant for him.)
Try this:
Forum: Plugins
In reply to: [Geolocation IP Detection] WP-Rocket combinationAJAX mode should solve this, yes.
Forum: Plugins
In reply to: [Geolocation IP Detection] Country code in PHP snippetYes of course.
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#basic-use
The lookup page of the plugin can help you to find a specific property.
Mixing the data from Geolocation with the one provided from WooCommerce doesn’t make too much sense I suppose – what if one source says it’s “Italy” and the other source says it’s “Germany, Berlin”. You’d need one “true” datasource.
So I guess what you are trying to do is replacing the geolocation mechanicsm in WooCommerce with the one from this plugin via a WooCommerce filter, is this correct? I don’t know how the shipping calculator works.Forum: Plugins
In reply to: [Geolocation IP Detection] hide/content by timeThis is an interesting use case but I guess, as it’s not related to geolocation, this is out of scope of this plugin. I could imagine generalizing the ajax mode with hooks so that you can implement this in a seperate plugin?
Forum: Plugins
In reply to: [Geolocation IP Detection] Mobile – Geolocation IP DetectionMobile Geoip detection is tricky, yes, because it all depends on how the mobile carrier is handling it.
For example:
https://nixintel.info/osint/geolocating-mobile-phones-with-an-ip/For mobile phones, it makes more sense to use the JS geolocation API (the website is asking the user to reveal their location, and then it is sending only the GPS coordinates, not a city name). I am thinking about integrating this into this plugin, would this help?
https://github.com/yellowtree/geoip-detect/issues/5Forum: Plugins
In reply to: [Geolocation IP Detection] display location in queryYou mean, in your URL? You can adapt this code to your needs:
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#redirect-depending-on-country
Forum: Plugins
In reply to: [Geolocation IP Detection] Geolocation IP DetectionDid you try other data sources? HostIP.info is not very accurate.
Good question. Probably it is possible to do both.
I would recommend using AJAX for both shortcodes & Google Maps – in that case, it will only do 1 AJAX request for everything and save the result in a cookie, so that the next server request doesn’t need any GeoIP lookup at all.
Forum: Plugins
In reply to: [Geolocation IP Detection] How to Disable Plugin for GDPR?The easiest way to do this is to enable AJAX mode and then set the key to
plugins/geoip-detect/js/dist/frontend.js
I will add this to the GDPR FAQ, good idea.https://github.com/yellowtree/geoip-detect/wiki/FAQ#is-this-plugin-gdpr-compliant
Forum: Plugins
In reply to: [Geolocation IP Detection] Null IP detectionI have to check …
For now, you can try using the attribute “isEmpty” as criteria:[geoip_detect2_show_if property=”isEmpty” property_value=”1″]
Oh wait, you said cloudfront …
https://forums.aws.amazon.com/ann.jspa?annID=2051Here is the complete list of Cloudflare IPs:
https://www.cloudflare.com/ips/
It’s a bit lengthy, but you could save them all …Forum: Plugins
In reply to: [Geolocation IP Detection] How to allow some pages to be excludedYes and now, if there is a redirect implemented it is in the code somewhere, either JS or PHP, similar to this:
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#redirect-depending-on-country
The main audience of my plugin is developers, and esp. redirects is something that will require code. So probably you will have to ask your developer to solve your problems.
Bypass for developer: Best way currently is this PHP filter:
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#change-record-data-eg-for-testing-purposesDid you add 130.176.90.85 to the reverse proxy whitelist?