Skip to content

wdyzewski/bruteforcebreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roundcube - Bruteforce Breaker

This plugin will ban IP address for X minutes after several consecutive failed login attemps.

When an IP is banned, RoundCube will return invalid credentials.

Requirements

There is no dependency. This plugin was developped for Roundcube 0.9.0+ but it might be compatible with earlier versions.

Installation

  • Upload the plugin in your RoundCube installation into /plugins/.
  • Rename the plugin folder into bruteforcebreaker.
  • Add the plugin in your plugins array in /config/main.inc.php :
$rcmail_config['plugins'] = array('bruteforcebreaker');
  • It's already working ! :)

Note: Make sure that your plugin directory is writable (chmod 755 plugins/bruteforcebreaker).

Configuration

You can override default settings by copying config.inc.php.dist into config.inc.php.

  • keep_trace: Log login attemps.
  • nb_attemps: Number of login attemps before ban
  • duration: Ban duration in seconds
  • whitelist: An array of whitelist IP (they can't be banned)

You can use wildcards in your whitelist array (such as: 192.168.0.*).

Warning: This kind of wildcards won't work => 192.168.0.1*

Changelog

1.2

Whitelist now handle wildcard IP.

1.1

Whitelist added in config file.

1.0

Initial commit.

License

This software is distributed under the MIT license by Arthur Hoaro.

Thanks to SebSauvage for the inspiration.

About

Clone of https://git.hoa.ro/arthur/rc-plugin-bruteforce-breaker with my change (works with Roundcube 1.3)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages