Commit Graph

50 Commits (develop)

Author SHA1 Message Date
Steve Allison 49812d9746 Fix missing () 2013-02-22 19:05:54 +00:00
Steve Allison 9af9edf09d No need for DB lookup during login unless 403 2013-02-22 19:02:27 +00:00
Steve Allison 7e66141336 Match comment to function 2013-02-21 21:25:56 +00:00
Steve Allison e0bc336890 Reformat config file a little 2013-02-21 21:25:11 +00:00
Steve Allison 2f90243356 Fix debug output for check period 2013-02-21 19:19:51 +00:00
Steve Allison 964c53427d Update README with roundcube version requirement 2013-02-21 19:15:26 +00:00
Steve Allison d6a5e8a800 Add image to readme 2013-02-21 19:11:51 +00:00
Steve Allison 746f590746 Update readme, TODO log ui 2013-02-21 19:07:05 +00:00
Steve Allison 794e8c4c45 Update readme with history 2013-02-21 18:38:21 +00:00
Steve Allison f9e96a7ac2 Debug log switch added to config.inc.php 2013-02-21 18:37:02 +00:00
Steve Allison cbeb743904 Add sql schema file to sql/ 2013-02-21 18:35:29 +00:00
Steve Allison 3f0ea7079a Reduce check time for recently banned IPs
Reduces the effect of getting the password wrong immediately after being
unbanned gets you instantly banned again.
2013-02-21 18:24:46 +00:00
Steve Allison 79a17a725d Cache ban data, show ban duration to user 2013-02-21 17:20:46 +00:00
Steve Allison 0585baddb3 Add localization 2013-02-21 17:20:27 +00:00
Steve Allison a899c6a17d Put ban queries to functions, implement auth check 2013-02-21 15:37:03 +00:00
Steve Allison 19c22f9164 isWhite/Blacklisted(), function comments 2013-02-21 14:54:10 +00:00
Steve Allison b91e7aa171 Move authenticate to end, remove isBanned() 2013-02-21 14:19:50 +00:00
Steve Allison 3e52400d52 Remove some debug, add return for login hook 2013-02-21 14:18:19 +00:00
Steve Allison 25ccada7c6 Only write to debug log if debug is enabled 2013-02-21 14:14:03 +00:00
Steve Allison 43fa4a0678 Various bug fixes, more debug lines 2013-02-21 14:02:37 +00:00
Steve Allison ade7be0daa Consolidate dbError(), add some debug lines 2013-02-21 13:27:27 +00:00
Steve Allison 8680b42ed6 Add IPv4 sanitation check 2013-02-21 13:17:40 +00:00
Steve Allison 29d069a265 Attempted ipv6 support (untested) 2013-02-21 12:51:12 +00:00
Steve Allison e2797d9b6e Adjust function comments to reflect IP type 2013-02-21 12:39:54 +00:00
Steve Allison 4c65639b2b Make ip comparison binary safe 2013-02-21 12:39:10 +00:00
Steve Allison 94c87c5f89 Rename functions to ipv4 or ipv6, begin ipv6 code 2013-02-21 12:38:38 +00:00
Steve Allison 83a990e4e3 Failed login hook implemented 2013-02-21 02:49:05 +00:00
Steve Allison f5d9d02cbc Missed semicolon (groan) 2013-02-20 21:54:00 +00:00
Steve Allison ea6a33f237 First attempt at login_failed hook 2013-02-20 21:49:54 +00:00
Steve Allison e991167811 Move config variables to just-before-use 2013-02-20 21:29:16 +00:00
Steve Allison 24b87fa579 Add config variable to set ban type 2013-02-20 21:20:42 +00:00
Steve Allison 2e7c4825ff Typo % = $ 2013-02-20 21:13:00 +00:00
Steve Allison 53959f9b89 Fix function referense (ugh missed it) 2013-02-20 21:12:11 +00:00
Steve Allison 0f0fe693e4 Fix function reference 2013-02-20 21:10:57 +00:00
Steve Allison 1236cc5c3b Fix statement brackets 2013-02-20 21:09:12 +00:00
Steve Allison 4ae6625cce Rename main php file to match plugin 2013-02-20 21:05:39 +00:00
Steve Allison d4168396ba Fix function names 2013-02-20 21:05:21 +00:00
Steve Allison 70055d4d76 Remove whitespace 2013-02-20 21:04:36 +00:00
Steve Allison d3eab78782 Rename class to 'defense' 2013-02-20 20:59:40 +00:00
Steve Allison cf8a05aca2 Clarify white/blacklist in config 2013-02-20 20:58:58 +00:00
Steve Allison 638597a1c9 Every config variable has defense_ prefix 2013-02-20 20:56:44 +00:00
Steve Allison 2993c8dc9f Create class, CIDR logic for white/blacklist 2013-02-20 20:54:15 +00:00
Steve Allison b7fbb8af2b Add some clarification, idea for log expiry 2013-02-20 20:49:57 +00:00
Steve Allison 0e2795450e First mock of config file
Outlining user variables
2013-02-20 15:17:33 +00:00
Steve Allison cd891c0fef Adjust name of plugin to 'defense' 2013-02-20 14:17:30 +00:00
Steve Allison 7b7d92eac5 It's called defense, not protect
i r idiot
2013-02-20 13:09:59 +00:00
Steve Allison 0cee10d1a9 Create README file 2013-02-20 13:07:46 +00:00
Steve Allison 27d6ce1424 Add GPL 2013-02-20 12:14:55 +00:00
Steve Allison ed66342406 Remove automatically created .git* files 2013-02-20 11:52:04 +00:00
Steve Allison df18832fac Created repository 2013-02-20 11:48:17 +00:00