Title: Nginx Ban User Parameter doesn&#039;t work
Last modified: August 21, 2016

---

# Nginx Ban User Parameter doesn't work

 *  Resolved [siprof](https://wordpress.org/support/users/siprof/)
 * (@siprof)
 * [12 years ago](https://wordpress.org/support/topic/nginx-ban-user-parameter-doesnt-work/)
 * for example I want to block these IP’s: 111.111.111.4 ~ 111.111.111.9
    So I put
   on the form 111.111.111.* which is translated into Nginx rules: 111.111.111.[
   0-9]+;
 * unfortunately Nginx won’t accept that: …[emerg] invalid parameter “111.111.111.[
   0-9]+” in …
 * I Googled a bit and found that 111.111.111.0/24; worked
    for a better rules I
   use these IP calculator: [http://www.ipaddressguide.com/cidr#range](http://www.ipaddressguide.com/cidr#range)
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [iThemes Support](https://wordpress.org/support/users/ithemes-support/)
 * (@ithemes-support)
 * [12 years ago](https://wordpress.org/support/topic/nginx-ban-user-parameter-doesnt-work/#post-4904974)
 * Thanks for the report. Which version of NGINX are you using?
 *  Thread Starter [siprof](https://wordpress.org/support/users/siprof/)
 * (@siprof)
 * [12 years ago](https://wordpress.org/support/topic/nginx-ban-user-parameter-doesnt-work/#post-4904976)
 * Nginx 1.6.0
 *  Thread Starter [siprof](https://wordpress.org/support/users/siprof/)
 * (@siprof)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/nginx-ban-user-parameter-doesnt-work/#post-4905123)
 * fixed on v4.2.4
    Thanks

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

The topic ‘Nginx Ban User Parameter doesn't work’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)

 * 3 replies
 * 2 participants
 * Last reply from: [siprof](https://wordpress.org/support/users/siprof/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/nginx-ban-user-parameter-doesnt-work/#post-4905123)
 * Status: resolved