| Subject: | You should give a chance for others... |  
| Summary: | Package rating comment |  
| Messages: | 2 |  
| Author: | Buzz Pochine |  
| Date: | 2017-07-04 07:52:20 |  
|   |  
 
 | 
 | 
Buzz Pochine rated this package as follows:
| Utility:  | Insufficient | 
| Consistency:  | Sufficient | 
| Examples:  | Sufficient | 
| 
 | 
  Buzz Pochine - 2017-07-04 07:52:20  
You should give a chance for others to decide what to do with tor-users. Add method like isTorUser() and it will be more useful. 
  
  Romeu Gamelas - 2017-07-04 08:29:23 -  In reply to message 1 from Buzz Pochine 
This script is a Tor users blocker, not to set flags. 
Thus the needed code changes for these purpose are minimal. Just create a new var, like  
 
public $isTorUser = false; 
 
and instead of show up the block page set it to true here: 
 
        if(strstr($tors,$_SERVER['REMOTE_ADDR'])){ 
            $this->isTorUser = true; 
            //remove or comment this die(); call 
        }  
  
   |