Title: Blocking localhost
Last modified: August 21, 2016

---

# Blocking localhost

 *  Resolved [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/blocking-localhost/)
 * This function returns false unconditionally, due to the “return false” on the
   second line. Hence, I just saw “Your IP (127.0.0.1) has been flagged for potential
   security violations. Please try again in a little while…” on a development site
   I was working on.
 * >  function is_on_localhost() {
   >  $ip = $this->brute_get_ip(); return false; //
   > Never block login from localhost if( $ip == ‘127.0.0.1’ || $ip == ‘::1’ ) {
   > return true; }
   >  return false;
   >  }
 * [http://wordpress.org/plugins/bruteprotect/](http://wordpress.org/plugins/bruteprotect/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Sam Hotchkiss](https://wordpress.org/support/users/samhotchkiss/)
 * (@samhotchkiss)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/blocking-localhost/#post-4518200)
 * d’oh… we turn off the localhost block when we’re developing, looks like we forgot
   to turn it back off. Pushing an update within the next 5 minutes
 * Thanks!

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/bruteprotect_372a22.svg)
 * [BruteProtect](https://wordpress.org/plugins/bruteprotect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bruteprotect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bruteprotect/)
 * [Active Topics](https://wordpress.org/support/plugin/bruteprotect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bruteprotect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bruteprotect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sam Hotchkiss](https://wordpress.org/support/users/samhotchkiss/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/blocking-localhost/#post-4518200)
 * Status: resolved