Skip to content

Grails plugin enables blocking user account after few attampts with incorect credentials. Preventing brute-force attacks

Notifications You must be signed in to change notification settings

jefferysmith/bruteforcedefender

 
 

Repository files navigation

Brute-force Defender Plugin Info

##Description Plugin adds functionality of blocking user account after a configured number of failed login, thus countering brute-force attacks. Plugin is working on top of configured Spring Security Core plugin with its UserDetails.

Installation

Dependencies

  • plugin depents on Spring Security Core plugin

install from pre-compliled

build from sources

  • clone repo git clone https://github.com/grygoriy/bruteforcedefender.git
  • build plugin grails package-plugin
  • you should see plugin zip file in plugin directory
  • use grails install-plugin <path to file>

Configuration

Add to your Config.groovy next lines

grails.plugins.springsecurity.useSecurityEventListener = true
bruteforcedefender {
    time = 5
    allowedNumberOfAttempts = 3
}

Logging

To enable login add next lines in your Config.groovy

log4j = {
    ....
    environments {
        development {
            debug 'grails.app.services.com.grygoriy.bruteforcedefender'
        }
    }
}

Grygoriy Mykhalyuno

www.grygoriy.com

[email protected]

About

Grails plugin enables blocking user account after few attampts with incorect credentials. Preventing brute-force attacks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 97.3%
  • Ruby 2.7%