Title: wfWAFUserIPRange.php error
Last modified: March 19, 2017

---

# wfWAFUserIPRange.php error

 *  Resolved [beachlizard](https://wordpress.org/support/users/beachlizard/)
 * (@beachlizard)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/)
 * Hello,
 * I get this error several times a day:
 * PHP Notice: Undefined offset: 3 in /home/domainname/public_html/wp-content/plugins/
   wordfence/waf/wfWAFUserIPRange.php on line 45
    PHP Notice: Undefined offset: 
   3 in /home/domainname/public_html/wp-content/plugins/wordfence/waf/wfWAFUserIPRange.
   php on line 49
 * I have this line on the htaccess file (Litespeed server)
 * <IfModule LiteSpeed>
    php_value auto_prepend_file ‘/home/domainname/public_html/
   wordfence-waf.php’ </IfModule>
 * Thank you

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

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/#post-8936768)
 * Hello,
    Please check “[Whitelisted IP addresses that bypass all rules](https://docs.wordfence.com/en/Wordfence_options#Whitelisted_IP_addresses_that_bypass_all_rules)”
   section in the plugin options page, let me know if you can recognize a badly 
   formatted IP range in there, or share it here replacing the last set with `.[
   x-x]` for example.
 * Thanks.
 *  Thread Starter [beachlizard](https://wordpress.org/support/users/beachlizard/)
 * (@beachlizard)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/#post-8937104)
 * Thank you [@wfalaa](https://wordpress.org/support/users/wfalaa/)
 * I corrected the error and now everything is ok!
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/#post-8939184)
 * Thanks for the update! I would appreciate if you can let me know what was the
   format exactly you entered there that caused this issue, so we can prevent such
   an error from happening in the future.
 * Thanks.
 *  Thread Starter [beachlizard](https://wordpress.org/support/users/beachlizard/)
 * (@beachlizard)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/#post-8940515)
 * Hello,
 * I added 66.249.66[1-255] instead of 66.249.66.[1-255]
 * Thanks

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

The topic ‘wfWAFUserIPRange.php error’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [beachlizard](https://wordpress.org/support/users/beachlizard/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/wfwafuseriprange-php-error/#post-8940515)
 * Status: resolved