Title: IP Blocking not working
Last modified: March 27, 2017

---

# IP Blocking not working

 *  [Builderb](https://wordpress.org/support/users/builderb/)
 * (@builderb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ip-blocking-not-working-2/)
 * I have tried testing the IP blocking feature of Wordfence with a vps but for 
   some reason it is not blocking the IP even though the live traffic is showing
   i am visiting the website with a blocked IP.
    – I have changed firewall from 
   learning to protecting status – I have tried changing delay ip blocking – Ip 
   is perma blocked manually but says that the IP has not visited the site when 
   blocked even though live traffic says otherwise – Tried changing other settings–
   I am using cloudflare and the IP detection is correctly set
    -  This topic was modified 9 years, 2 months ago by [Builderb](https://wordpress.org/support/users/builderb/).

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

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ip-blocking-not-working-2/#post-8962997)
 * Hi builderb,
    I think you mean “VPN” that you are using for testing? if so, when
   you are using the VPN, does the IP you get from a tool like [this one](http://whatismyipaddress.com/)-
   for example- is the same as in (Wordfence > Tools => Diagnostics => IPs)? Try
   to block this IP address manually in (Wordfence > Blocking), the plugin should
   refuse that with a pop-up message saying “You can’t block your own IP address.”
 * If this isn’t what you mean, then please elaborate how exactly you are testing
   this feature?
 * Thanks.
 *  Thread Starter [Builderb](https://wordpress.org/support/users/builderb/)
 * (@builderb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ip-blocking-not-working-2/#post-8964139)
 * Both CF-Connecting-IP (In Use) and X-Forwarded-For are the same IP as mine and
   X-Real-IP is not set. Also yes i did manually block the IP and tried to perma
   block it still can access the site.
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ip-blocking-not-working-2/#post-8976744)
 * Do you have any IP listed in “[Whitelisted IP addresses that bypass all rules](https://docs.wordfence.com/en/Wordfence_options#Whitelisted_IP_addresses_that_bypass_all_rules)”
   in the plugin options page?
 * What about trying another device (with another IP, your cellphone for example)?
   I mean try to block its IP then reload your website on this device, without using
   VPN at all.
 * Thanks.

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

The topic ‘IP Blocking not working’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/ip-blocking-not-working-2/#post-8976744)
 * Status: not resolved