Title: Determine IP Range
Last modified: August 30, 2016

---

# Determine IP Range

 *  Resolved [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/)
 * Hello!
 * At first, thank you very much for this awesome plugin!
 * Some of my users are reporting that they have problems being locked out immediatly
   after trying the first time.
 * In your code I found this line during the check:
    `$class_c = substr ($ip, 0 ,
   strrpos ( $ip, "." )`
 * As far as I can read php code, once a IP adress like 122.124.125.123 is blocked,
   everyone else with the ip 122.* is blocked too. This is a very high security 
   standard, which is not needed on my site.
 * Maybe you can add an option, where you can determine which IP range should be
   blocked?
 * Many thanks in advance!
 * Kind regards,
    Lars
 * [https://wordpress.org/plugins/login-lockdown/](https://wordpress.org/plugins/login-lockdown/)

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

 *  [mvandemar](https://wordpress.org/support/users/mvandemar/)
 * (@mvandemar)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6832956)
 * No, it’s the other way. strrpos starts from the end of the string, not the beginning.
   In your example it locks out everyone from 122.124.125.*.
 * Are the ones reporting this all on the same network?
 * -Michael
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6832963)
 * Thanks for the quick reply and the clarification.
 * No, they have all different IP adresses and different ISPs. But I noticed a strange
   IP adress which gets locked constantly. Maybe it is the same problem mentioned
   in this thread?
 * [https://wordpress.org/support/topic/repeatedly-locking-me-out?replies=9](https://wordpress.org/support/topic/repeatedly-locking-me-out?replies=9)
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6833354)
 * Unfortunately blocking some IP adresses didn’t solve the problem. Users report
   that they cannot login due to blocked IP Range. Do you have any clues?
 * Thanks!
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6833359)
 * Another info: This IP was responsible for blocking the IP Range: 24.154.70.196
 * The others IP adresses were 217.244.121.* and 178.25.154.*
 *  [mvandemar](https://wordpress.org/support/users/mvandemar/)
 * (@mvandemar)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6833360)
 * Do the ips blocked match what you see in the dashboard?
 * -Michael
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6833364)
 * No, they are not the same and didn’t showed up in the dashboard – not even close
   to a range. As mentioned above the IP 24.* blocked the other twos.
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-6833420)
 * Sorry that I ask again, but this issue is serious and it occurs at the moment
   at a very short frequent time.
 * Do you have any points I can check?
 *  [mvandemar](https://wordpress.org/support/users/mvandemar/)
 * (@mvandemar)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-8180116)
 * [@de_st](https://wordpress.org/support/users/de_st/) sorry for the overly long
   delay in replying. I just updated the plugin, are you still experiencing this
   issue?
 * -Michael
 *  Thread Starter [de_st](https://wordpress.org/support/users/de_st/)
 * (@de_st)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-8592960)
 * Mi Michael,
 * many thanks for the update! It works fine for me. Didn’t had a single issue in
   the last couple of months.
 * Thanks again for the support!
 * All the best,
    Lars

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

The topic ‘Determine IP Range’ is closed to new replies.

 * ![](https://ps.w.org/login-lockdown/assets/icon-256x256.png?rev=2901919)
 * [Login Lockdown & Protection](https://wordpress.org/plugins/login-lockdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-lockdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-lockdown/)
 * [Active Topics](https://wordpress.org/support/plugin/login-lockdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-lockdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-lockdown/reviews/)

## Tags

 * [IP Range](https://wordpress.org/support/topic-tag/ip-range/)

 * 9 replies
 * 2 participants
 * Last reply from: [de_st](https://wordpress.org/support/users/de_st/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/determine-ip-range/#post-8592960)
 * Status: resolved