WordPress.org

Plugin Directory

Changeset 557060


Ignore:
Timestamp:
06/13/12 04:02:04 (5 years ago)
Author:
iosec
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • iosec-anti-flood-security-gateway-module/trunk/iosec.php

    r557053 r557060  
    3434     
    3535/////////////////////////////////// CONFIGURATION MENU /////////////////////////////////////////////// 
    36 $use_captcha ="e";  //If you want to use reCAPTCHA set value to "e" otherwise leave empty (default is "e"). 
     36$use_captcha ="y";  //If you want to use reCAPTCHA set value to "y" otherwise leave empty (default is "y"). 
    3737$publickey = "6Ld6fNESAAAAAIM4YzckCmfqyzFOmrrTj2Qq55Tq";    // Get a key from https://www.google.com/recaptcha/admin/create 
    3838$privatekey = "6Ld6fNESAAAAAKWYKMAypEffxoUlpW8RZ5UYGmaK";   // Get a key from https://www.google.com/recaptcha/admin/create 
    3939$interval       = 0.5;  //Connection Interval in seconds (e.g. 1, 0.5, 0.001, etc.). 
    4040$conection_limit = 1; //Connection count in interval value (e.g. 1, 3, 5, 100). 
    41 $block_proxies  = "";   //If you want to block proxies set value to "e" otherwise leave empty. 
     41$block_proxies  = "";   //If you want to block proxies set value to "y" otherwise leave empty. 
    4242$refresh_timeout    = 10;   //Suspended Process Timeout value in seconds. 
    4343$redirection    = "";   //If you want to redirect user after suspended process, you can enter URL here. 
    4444$mail_info  = "";   //Mail address to notify (admin mail). 
    45 $debug_info = "e";  //If you want to show debug info then set value to "e" otherwise leave empty. 
    46 $behind_reverse_proxy   = "";   //If your web server behind a reverse proxy, set this value to "e". 
    47 $incremental_blocking   = "e"; //If you want to use incremental blocking, set this value to "e" (default is "e"). 
     45$debug_info = "y";  //If you want to show debug info then set value to "y" otherwise leave empty. 
     46$behind_reverse_proxy   = "";   //If your web server behind a reverse proxy, set this value to "y". 
     47$incremental_blocking   = "y"; //If you want to use incremental blocking, set this value to "y" (default is "y"). 
    4848$implicit_deny_timeout = 0;   //If you want to block every request as default for a timeout period (seconds), set this value to greater than "0" (default is "0"). 
    4949///////////////////////////////////////////////////////////////////////////////////////////// 
     
    226226                         
    227227     
    228     if (($behind_reverse_proxy == "e") && ($block_proxies <> "e")) 
     228    if (($behind_reverse_proxy == "y") && ($block_proxies <> "y")) 
    229229      { 
    230230        $REMOTE_ADDR = $_SERVER['HTTP_X_FORWARDED_FOR']; 
     
    491491                      } 
    492492                    $hatali = 1; 
    493                     if ($use_captcha == "e") 
     493                    if ($use_captcha == "y") 
    494494                      { 
    495495?> 
     
    533533                    if (($error <> null) || ($hatali == 1)) 
    534534                      { 
    535                         if ($debug_info == "e") 
     535                        if ($debug_info == "y") 
    536536                          { 
    537537                            echo "Debug Info<br>"; 
     
    539539                            echo "Microsecond: " . (time() + microtime()); 
    540540                          } 
    541                         if ($incremental_blocking == "e") 
     541                        if ($incremental_blocking == "y") 
    542542                          { 
    543543                            $htaccess = fopen($banlisttemp, 'a+'); 
Note: See TracChangeset for help on using the changeset viewer.