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
|
// Get SPF for the domain
|
||||||
$dnstxt = dns_get_record( $host , DNS_TXT );
|
$dnstxt = dns_get_record( $host , DNS_TXT );
|
||||||
|
|
||||||
// Die if Cloud Flare domain
|
// Notify if domain uses Cloud Flare
|
||||||
if ( $dns ) {
|
if ( $dns ) {
|
||||||
foreach ( array_reverse( $dns ) as $ns ) {
|
foreach ( array_reverse( $dns ) as $ns ) {
|
||||||
if ( strpos( $ns['target'] , 'cloudflare.com' ) !== false ) {
|
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>';
|
echo '<span style="color: red;">This is a Cloud Flare domain.</span>';
|
||||||
die;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user