Project

General

Profile

Feature #2199

[mod_evasive] redirect if maximum connections exceeded

Added by BennyBorn almost 7 years ago. Updated 10 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_evasive
Target version:
Start date:
2010-05-15
Due date:
% Done:

100%

Missing in 1.5.x:
No

Description

Hi, I'd really appreciate if you build in a feature to redirect to a specific page if the connection limit in evasive.max-conns-per-ip is reached.
I used mod_cband on Apache to do that to show my users a specific error page if they were trying to download multiple files at the same time from my download server - this would be very useful.

mod_evasive.patch View (2.02 KB) crypt, 2010-07-15 09:05

Associated revisions

Revision 0cd7f2dd (diff)
Added by gstrauss 11 months ago

[mod_evasive] 302 redirect option if limit reached (fixes #2199)

x-ref:
"[mod_evasive] redirect if maximum connections exceeded"
https://redmine.lighttpd.net/issues/2199

History

#1 Updated by crypt over 6 years ago

I'm really unsure, if such a redirect is the task of mod_evasive. This module is about banning IP's if too many requests appear in a certain time window. Anyway, your requested feature is really simple and was added in less than 5minutes. The patch adds the ability to redirect to an URL using evasive.location. I hope that helps.

#2 Updated by BennyBorn over 6 years ago

I'm really unsure, if such a redirect is the task of mod_evasive. This module is about banning IP's if too many requests appear in a certain time window.

You're right but somehow the user needs to be able to catch this thrown 403 error as long as the end-users don't know if they did something wrong and why they're gettings
this error page - thanx for the patch that really helps me (and hopefully some other users too ;) )

#3 Updated by BennyBorn over 6 years ago

  • % Done changed from 100 to 50

Hm I just applied the path and set evasive.location in my config but I'm still getting a 403 error instead of 302...

#4 Updated by gstrauss 11 months ago

  • Category set to mod_evasive
  • Target version set to 1.4.41

#5 Updated by gstrauss 11 months ago

  • Status changed from New to Patch Pending
  • Target version changed from 1.4.41 to 1.4.40

#6 Updated by gstrauss 10 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 50 to 100

Also available in: Atom