Title: Blocking CloudFlare
Last modified: September 19, 2022

---

# Blocking CloudFlare

 *  [18TommyBoy](https://wordpress.org/support/users/18tommyboy/)
 * (@18tommyboy)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/blocking-cloudflare-3/)
 * Can´t detect real IP like Wordfence. Blocking all CF and site nobody can´t visit…
   
   Last CF IP blocked: 172.68.51.84

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/blocking-cloudflare-3/#post-16024940)
 * You might try changing the order of IP-address types using the `banhammer_ip_keys`
   hook. Currently `REMOTE_ADDR` is first in the array, but you can change the order
   to account for proxies, loaders, etc. Look in `/inc/banhammer-functions.php` 
   lines 105 and 109 should get you there.
 * Also thanks for the rating, much appreciated.

Viewing 1 replies (of 1 total)

The topic ‘Blocking CloudFlare’ is closed to new replies.

 * ![](https://ps.w.org/banhammer/assets/icon-256x256.png?rev=2798558)
 * [Banhammer – Monitor Site Traffic, Block Bad Users and Bots](https://wordpress.org/plugins/banhammer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/banhammer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/banhammer/)
 * [Active Topics](https://wordpress.org/support/plugin/banhammer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/banhammer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/banhammer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/blocking-cloudflare-3/#post-16024940)