Needs review
Project:
Troll
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2008 at 09:49 UTC
Updated:
16 Dec 2015 at 14:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jaydub commentedComment #2
pomliane commentedThis version of Troll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.
Comment #3
bibo commentedI needed also the feature for more finetuned IP bans, so I created this relatively simple patch that adds there changes:
- IP ban form insert/update now handles minutes & hours as well as the day.
- The default timestamp is now +3600s to current time.
- Expire time is now on by default (avoiding totally useless and endless IP bans).
- IP bans shown on the table show the correct granularity (per minute, not per day)
My patch also contains a few lines fixing critical bugs in these issues:
#2616066: Troll lets Varnish cache the redirects, making ANY user see blocked.html!
#2473413: Ip banning doesnt work(!) -> oneliner fix
Comment #4
bibo commentedHere is an alternative patch that defaults to 23:30 or 23:59 of current day instead of +1 hour.
Comment #5
mgiffordI took a quick look at this. Code applies nicely. I just added an expiry time /node#overlay=admin/people/troll/ip_ban
Seemed to work.
Anyone willing to mark this RTBC?