mirror of
				https://git.bakhai.co.in/FbIN/LibreY.git
				synced 2025-11-04 12:01:31 +05:30 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			664 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			664 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
    class TorRequest extends EngineRequest {
 | 
						|
        public function get_request_url() {
 | 
						|
            return "https://check.torproject.org/torbulkexitlist";
 | 
						|
        }
 | 
						|
 | 
						|
        public function parse_results($response) {
 | 
						|
            $formatted_response = strpos($response, $_SERVER["REMOTE_ADDR"]) ? "It seems like you are using Tor" : "It seems like you are not using Tor";
 | 
						|
            $source = "https://check.torproject.org";
 | 
						|
            
 | 
						|
            return array(
 | 
						|
                "special_response" => array(
 | 
						|
                    "response" => $formatted_response,
 | 
						|
                    "source" => $source
 | 
						|
                )
 | 
						|
            );
 | 
						|
        }
 | 
						|
    }
 | 
						|
?>
 |