no reason to die if domain is using CloudFlare
This commit is contained in:
parent
88362f4b2a
commit
7854522f94
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user