CF double notification fix
This commit is contained in:
parent
7854522f94
commit
549c696ab3
|
|
@ -53,9 +53,12 @@ if ( $isIP ) {
|
||||||
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.</span>';
|
$cf = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( $cf ) {
|
||||||
|
echo '<span style="color: red;"> This is a Cloud Flare domain.</span>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $ip == $host ) {
|
if ( $ip == $host ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user