Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Preventing DOS attacks with CGI.pm

by Ovid (Cardinal)
on Aug 10, 2001 at 01:10 UTC ( [id://103632]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $CGI::DISABLE_UPLOADS = 1;          # Disable uploads
        $CGI::POST_MAX        = 512 * 1024; # limit posts to 512K max
    
  2. or download this
        use CGI::Safe;
        my $q = CGI::Safe->new( DISABLE_UPLOADS => 0 );
    
  3. or download this
        use CGI::Safe;
        $CGI::DISABLE_UPLOADS = 0;
        my $q = CGI::Safe->new;
    
  4. or download this
        my $q = CGI::Safe->new( data => $stuff );
    
  5. or download this
    ################################
    package CGI::Safe;
    ...
        return ( exists $args{ data } ) ? CGI::new( $self, $args{ data } )
    + :
                                          CGI::new( $self );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://103632]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-21 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found