Delete 'not_cloudflare/get_fqdn_tmg1.php'

This commit is contained in:
username 2019-05-07 10:09:20 +00:00
parent ac10858ad2
commit e940457f15
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
<?php
//License: WTFPL
define('F_INPUT','noncloudflarelist.txt');
define('F_OUTPUT','fqdnlist.txt');
if (!file_exists(F_INPUT)){
die('File not found');
}
$result = array();
foreach(explode("\n",file_get_contents(F_INPUT)) as $t){
$t = explode(' ',$t)[0];
if (preg_match("/^([a-z0-9-\.]{1,255})\.([a-z]{2,40})$/",$t)){
$result[] = $t;
}
}
$result = array_unique($result);
file_put_contents(F_OUTPUT,implode("\n",$result));
echo('Done');