no reason to die if domain is using CloudFlare

This commit is contained in:
Filip 2020-03-11 16:33:59 +01:00
parent 88362f4b2a
commit 7854522f94

View File

@ -49,12 +49,11 @@ if ( $isIP ) {
// Get SPF for the domain
$dnstxt = dns_get_record( $host , DNS_TXT );
// Die if Cloud Flare domain
// Notify if domain uses Cloud Flare
if ( $dns ) {
foreach ( array_reverse( $dns ) as $ns ) {
if ( strpos( $ns['target'] , 'cloudflare.com' ) !== false ) {
echo '<span style="color: red;">This is a Cloud Flare domain. Data can\'t be collected for this domain.</span>';
die;
echo '<span style="color: red;">This is a Cloud Flare domain.</span>';
}
}
}