diff --git includes/bootstrap.inc includes/bootstrap.inc
index 11cce13..e44f420 100644
--- includes/bootstrap.inc
+++ includes/bootstrap.inc
@@ -2261,8 +2261,11 @@ function drupal_valid_test_ua($user_agent) {
   // The file properties add more entropy not easily accessible to others.
   $filepath = DRUPAL_ROOT . '/includes/bootstrap.inc';
   $key = $drupal_hash_salt . filectime($filepath) . fileinode($filepath);
-  // The HMAC must match.
-  return $hmac == drupal_hmac_base64($check_string, $key);
+  $time_diff = REQUEST_TIME - $time;
+  // Since we are making a local request, a 30 second time window is allowed,
+  // and the HMAC must match.
+  // @todo - fix the curl redirect behavior so we can shorten this time window.
+  return (($time_diff >= 0) && ($time_diff <= 30) && $hmac == drupal_hmac_base64($check_string, $key));
 }
 
 /**
