Title: Null IP detection
Last modified: November 1, 2021

---

# Null IP detection

 *  Resolved [hendratok](https://wordpress.org/support/users/hendratok/)
 * (@hendratok)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/)
 * We found some ip detect as null, is this plugin have some shortcode to detect
   null result and put is as default? we try to geoip some content by country. I
   try
 * [geoip_detect2_show_if country=”NULL”] Some Content [/geoip_detect2_show_if]
 * or
 * [geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]
 * is not work. checked documentation too. but cant find anything about this. thank
   you

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

 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15024364)
 * no it shouldn’t return NULL, can you tell me which source you are using and which
   IP?
 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15024368)
 * It can return an empty record, though, where country returns “” – when the IP
   is unknown.
 *  Thread Starter [hendratok](https://wordpress.org/support/users/hendratok/)
 * (@hendratok)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15027666)
 * Hi, some ip got this:
    No information has been found for the IP
 * [https://ipstack.com/](https://ipstack.com/) is the source.
 * what I try to do is get default shortcode country = empty ? is possible to do
   that?
 *  Thread Starter [hendratok](https://wordpress.org/support/users/hendratok/)
 * (@hendratok)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15045818)
 * Hi, sorry support, what we try to do is like have “default” content for undetected
   ip address. are this plugin support this feature? thank you
 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15046104)
 * I have to check …
    For now, you can try using the attribute “isEmpty” as criteria:
 * [geoip_detect2_show_if property=”isEmpty” property_value=”1″]
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15047462)
 * [geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]
 * is working for me. Here is a test case, it should show Empty in all three lines:
 *     ```
       Country empty or not?: [geoip_detect2_show_if country=""]Empty[else]Not Empty[/geoip_detect2_show_if]
       Country empty or not?: [geoip_detect2_hide_if country=""]Not Empty[else]Empty[/geoip_detect2_hide_if]
       Country empty or not?: [geoip_detect2_show_if property="isEmpty" value="1"]Empty[else]Not Empty[/geoip_detect2_show_if]
       ```
   
 * Can you tell me:
    – Are you using AJAX mode? – Which IP did you test? You can
   send it to my Email if you want, wp-geoip-detect posteo de
 *  Thread Starter [hendratok](https://wordpress.org/support/users/hendratok/)
 * (@hendratok)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15057437)
 * OK great, let me test on my website, if still not working I will report here 
   or email to you. thank you to great support
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15148812)
 * `[geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]` should
   work in the current beta (4.3.0-beta3), can you have a try?
 * [https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing](https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing)
 * I realized that empty parameter values were ignored before, accounting for the
   weird behaviour that you saw.

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

The topic ‘Null IP detection’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/null-ip-detection/#post-15148812)
 * Status: resolved