Have you looked at this: http://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html
Just checking... On Thu, Jul 11, 2013 at 1:23 PM, Chris Chen <[email protected]> wrote: > Hey Jason, > > We would like to add custom logic to rate limiting certain types of > request by IP. Basically, if an IP had made certain requests too many > times within last x mins or seconds, we will return an error, Otherwise, we > will let the cgi handles the request. > > Thanks. > > > On Thursday, July 11, 2013 9:37:07 AM UTC-7, Jason Garber wrote: > >> Hi Chris, >> >> Can you expand on what type of "custom logic" you are referring to? I >> assume said CGI script returns HTML? Is that what you wish to manipulate >> via mod_wsgi+python? >> >> J >> >> >> >> On Thu, Jul 11, 2013 at 12:24 PM, Chris Chen <[email protected]> wrote: >> >>> Hi there. >>> >>> We use a CGI script that is written in C (not written by us), compiled >>> and directly called from apache. We would like to add some custom logic on >>> top of it, and we are hoping we can wrap it with mod_wsgi. >>> >>> Is this a good idea? Does anyone have an example? >>> >>> Thanks! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "modwsgi" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to modwsgi+u...@**googlegroups.com. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at >>> http://groups.google.com/**group/modwsgi<http://groups.google.com/group/modwsgi> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/groups/opt_out.
