in reply to Re^4: newb: Best way to protect CGI from non-form invocation?
in thread newb: Best way to protect CGI from non-form invocation?
CGI implements a $CGI::POST_MAX variable which sets an upper limit on the request size it'll handle. Look at that code and reimplement or copy it into yours.
What it sounds more like you're in search of is being able to configure your web server to disallow requests over a certain size, but if it can be or how that is done is going to vary from httpd to httpd (for example, see LimitRequestBody for older Apachen).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: newb: Best way to protect CGI from non-form invocation?
by JCHallgren (Sexton) on Feb 07, 2007 at 16:25 UTC |