]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Empty UA strings are better browsers
[mailer.git] / inc / functions.php
index 0f372b79a7843578bebc7b0afb51fddc8c1d72fc..a860162bd5389cab6aba31487b5e66ce6b4455e7 100644 (file)
@@ -1957,10 +1957,10 @@ function isSpider () {
        // Get the UA and trim it down
        $userAgent = trim(detectUserAgent(TRUE));
 
-       // It should not be empty, if so it is better a spider/bot
+       // It should not be empty, if so it is better a browser
        if (empty($userAgent)) {
-               // It is a spider/bot
-               return TRUE;
+               // It is a browser that blocks its UA string
+               return FALSE;
        } // END - if
 
        // Is it a spider?